/* ============================================================
   Nebrel — Design System v3
   Schwebende Pill-Navigation, großflächige Hero-Typo,
   dunkle Glasflächen. Ein Stylesheet für alle Seiten.
   ============================================================ */

@font-face {
  font-family: "Geist Pixel Circle";
  src: url("/fonts/GeistPixel-Circle.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #07060d;
  --bg-2: #0d0b18;
  --surface: rgba(158, 145, 255, 0.055);
  --surface-2: rgba(168, 155, 255, 0.095);
  --glass: rgba(17, 14, 28, 0.62);
  --line: rgba(180, 170, 255, 0.11);
  --line-2: rgba(190, 180, 255, 0.22);

  --text: #f6f4fc;
  --text-2: #b0abc8;
  --text-3: #7d7996;

  --accent: #8a7bff;
  --accent-2: #ef8fdc;
  --accent-strong: #6a57ff;
  --accent-warm: #ffb15c;
  --accent-soft: rgba(138, 123, 255, 0.16);

  --up: #45d9a4;
  --degraded: #f0a83c;
  --down: #fb5f8f;
  --maint: #8a7bff;

  --discord: #5865f2;

  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-pixel: "BubbledotICG-FinePos", "Geist Pixel Circle", ui-monospace, monospace;

  --radius: 18px;
  --radius-lg: 26px;
  --shell: 1160px;

  /* schmaler, farbiger Verlaufsrand — auf Karten, Kacheln, Panels überall */
  --edge: linear-gradient(
    135deg,
    rgba(138, 123, 255, 0.65) 0%,
    rgba(239, 143, 220, 0.4) 45%,
    rgba(255, 177, 92, 0.3) 100%
  );
  --edge-soft: linear-gradient(
    135deg,
    rgba(138, 123, 255, 0.34) 0%,
    rgba(239, 143, 220, 0.2) 45%,
    rgba(255, 177, 92, 0.15) 100%
  );
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* Native Elemente (Dropdown-Listen, Scrollbars, Datepicker) im
     Dunkel-Theme statt im hellen Browser-Standard rendern — sonst poppt
     beim Öffnen eines <select> eine grelle helle Liste auf. */
  color-scheme: dark;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  accent-color: var(--accent);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(155, 140, 255, 0.35);
}

img {
  max-width: 100%;
}

/* ============================================================
   HINTERGRUND — Aurora + Sterne + Raster (animiert)
   ============================================================ */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, #1b1540 0%, transparent 55%),
    radial-gradient(90% 60% at 80% 110%, #241a4d 0%, transparent 60%),
    var(--bg);
  pointer-events: none;
}

/* driftende Farbwolken */
.bg-aurora {
  position: absolute;
  inset: -20%;
  filter: blur(90px);
  opacity: 1;
}

.bg-aurora i {
  position: absolute;
  display: block;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
}

.bg-aurora i:nth-child(1) {
  width: 46vw;
  height: 46vw;
  top: -8%;
  left: 2%;
  background: radial-gradient(circle, rgba(124, 96, 255, 0.95), transparent 66%);
  animation: drift1 26s ease-in-out infinite alternate;
}

.bg-aurora i:nth-child(2) {
  width: 40vw;
  height: 40vw;
  top: 4%;
  right: 2%;
  background: radial-gradient(circle, rgba(220, 116, 240, 0.8), transparent 66%);
  animation: drift2 32s ease-in-out infinite alternate;
}

.bg-aurora i:nth-child(3) {
  width: 52vw;
  height: 38vw;
  bottom: -12%;
  left: 18%;
  background: radial-gradient(circle, rgba(64, 168, 255, 0.6), transparent 68%);
  animation: drift3 38s ease-in-out infinite alternate;
}

.bg-aurora i:nth-child(4) {
  width: 34vw;
  height: 34vw;
  top: 34%;
  left: 38%;
  background: radial-gradient(circle, rgba(255, 128, 186, 0.5), transparent 68%);
  animation: drift4 44s ease-in-out infinite alternate;
}

/* Sternenfeld (Canvas) */
.bg-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* feines Raster mit weichem Rand */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 15%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 15%, transparent 75%);
}

/* Horizontglühen unten */
.bg-glow {
  position: absolute;
  left: 50%;
  bottom: -34vh;
  width: 150vw;
  height: 60vh;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(150, 120, 255, 0.5), transparent 72%);
  filter: blur(30px);
  animation: breathe 12s ease-in-out infinite;
}

/* Filmkorn */
.bg-grain {
  position: absolute;
  inset: -100%;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/><feColorMatrix type='saturate' values='0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  animation: grain 8s steps(6) infinite;
}

/* Unterseiten: alles eine Spur ruhiger */
body:not([data-hero]) .bg-aurora {
  opacity: 0.5;
}

body:not([data-hero]) .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 7, 13, 0.35) 0%, rgba(8, 7, 13, 0.82) 55%, var(--bg) 100%);
}

/* ---------------- Hintergrundvideo pro Abschnitt ---------------- */
/* Wird nur eingefügt, wenn public/assets/videos/<slug>.mp4|webm existiert
   — siehe public/app.js#mountSectionVideo. Ohne Datei bleibt alles wie
   oben (animierte Aurora/Sterne). */

.section-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  animation: videoIn 0.6s ease both;
}

.section-video-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(7, 6, 13, 0.32) 0%,
    rgba(7, 6, 13, 0.5) 45%,
    rgba(7, 6, 13, 0.86) 100%
  );
}

@keyframes videoIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Läuft ein echtes Video, brauchen wir die prozedurale Aurora/Sterne/Raster
   Ebene nicht mehr — die Grundfarbe von .bg bleibt als Fallback bestehen,
   falls das Video mal einen Frame lang nicht rendert. */
.bg.has-video .bg-aurora,
.bg.has-video .bg-stars,
.bg.has-video .bg-grid,
.bg.has-video .bg-grain {
  opacity: 0;
}

.bg.has-video .bg-glow {
  animation: none;
  opacity: 0;
}

.bg.has-video::after {
  content: none;
}

.stage.has-video .stage-glow {
  animation: none;
  opacity: 0;
}

@keyframes drift1 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(6vw, 5vh, 0) scale(1.12); }
  100% { transform: translate3d(-3vw, 9vh, 0) scale(0.95); }
}

@keyframes drift2 {
  0%   { transform: translate3d(0, 0, 0) scale(1.05); }
  50%  { transform: translate3d(-7vw, 7vh, 0) scale(0.92); }
  100% { transform: translate3d(3vw, -4vh, 0) scale(1.15); }
}

@keyframes drift3 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(8vw, -6vh, 0) scale(1.18); }
  100% { transform: translate3d(-6vw, 2vh, 0) scale(1); }
}

@keyframes drift4 {
  0%   { transform: translate3d(0, 0, 0) scale(0.95); }
  50%  { transform: translate3d(-5vw, -8vh, 0) scale(1.2); }
  100% { transform: translate3d(7vw, 4vh, 0) scale(1); }
}

@keyframes breathe {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) scaleY(1); }
  50%      { opacity: 0.85; transform: translateX(-50%) scaleY(1.12); }
}

@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 4%); }
  40%  { transform: translate(2%, -3%); }
  60%  { transform: translate(-2%, -2%); }
  80%  { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ============================================================
   TOPBAR — schwebende Pille
   ============================================================ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 18px clamp(14px, 3vw, 26px) 0;
}

.topbar-inner {
  max-width: 980px;
  margin: 0 auto;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 8px 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(24, 20, 44, 0.42);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand:hover .brand-mark {
  transform: rotate(90deg);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.brand-name em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}

.topnav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.topnav a:hover {
  color: #fff;
}

.topnav a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.burger span {
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.mobile-sheet {
  position: fixed;
  z-index: 59;
  top: 92px;
  left: clamp(14px, 3vw, 26px);
  right: clamp(14px, 3vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: rgba(16, 13, 30, 0.94);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
  animation: sheetIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mobile-sheet a,
.mobile-sheet button {
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text-2);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.mobile-sheet a.is-active {
  background: var(--surface-2);
  color: #fff;
}

.mobile-sheet .sheet-cta {
  margin-top: 6px;
  text-align: center;
  background: #fff;
  color: #0a0a0f;
  font-weight: 600;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease,
    box-shadow 0.22s ease, color 0.22s ease;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn.primary {
  background: #fff;
  border-color: transparent;
  color: #0a0812;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.16);
}

.btn.primary:hover {
  background: #f0eefb;
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.24);
}

.btn.accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #0d0a1a;
  font-weight: 600;
  box-shadow: 0 10px 32px rgba(155, 140, 255, 0.32);
}

.btn.sm {
  height: 36px;
  padding: 0 16px;
  font-size: 13.5px;
}

.btn.danger {
  color: #ffbdd2;
  border-color: rgba(246, 85, 140, 0.32);
}

.btn.danger:hover {
  background: rgba(246, 85, 140, 0.16);
}

.btn.full {
  width: 100%;
}

.btn.discord {
  background: rgba(88, 101, 242, 0.16);
  border-color: rgba(88, 101, 242, 0.4);
  color: #c9cdff;
}

.btn.discord:hover {
  background: rgba(88, 101, 242, 0.28);
  border-color: rgba(88, 101, 242, 0.6);
  color: #fff;
}

.btn.discord i {
  color: var(--discord);
  font-size: 16px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--text-3);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-2);
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.icon-btn:hover {
  background: var(--surface-2);
  color: #fff;
}

/* ============================================================
   HERO
   ============================================================ */

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  margin-top: -80px;
  padding-top: 80px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}

.stage-glow {
  position: absolute;
  left: 50%;
  top: 26%;
  width: min(1100px, 120vw);
  height: min(560px, 70vh);
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(175, 145, 255, 0.5), transparent 70%);
  filter: blur(40px);
  animation: breathe 14s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

/* weicher Nebelstreifen, der VOR der Überschrift liegt */
.stage-mist {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 42%;
  height: 34vh;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(60% 100% at 25% 60%, rgba(214, 196, 255, 0.16), transparent 70%),
    radial-gradient(55% 100% at 78% 45%, rgba(255, 200, 240, 0.13), transparent 70%);
  filter: blur(26px);
  animation: mistDrift 30s ease-in-out infinite alternate;
}

@keyframes mistDrift {
  from { transform: translate3d(-3%, 0, 0); }
  to   { transform: translate3d(3%, -2%, 0); }
}

.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(8, 7, 13, 0) 0%, rgba(8, 7, 13, 0) 55%, rgba(8, 7, 13, 0.55) 82%, var(--bg) 100%);
  pointer-events: none;
}

.stage-head {
  position: relative;
  z-index: 1;
  max-width: var(--shell);
  width: 100%;
  margin: 0 auto;
  padding: clamp(40px, 9vh, 96px) clamp(14px, 3vw, 26px) 0;
  text-align: center;
}

.stage-body {
  position: relative;
  z-index: 4;
  max-width: var(--shell);
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(14px, 3vw, 26px);
  text-align: center;
}

.hero-title {
  position: relative;
  font-size: clamp(56px, 13.5vw, 188px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.058em;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.5) 32%,
    rgba(255, 255, 255, 0.95) 46%,
    rgba(255, 255, 255, 0.5) 62%,
    rgba(255, 255, 255, 0.5) 100%
  );
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: titleIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) both,
    sheen 9s ease-in-out 1.2s infinite;
}

@keyframes titleIn {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sheen {
  0%, 100% { background-position: 130% 0; }
  50%      { background-position: -30% 0; }
}

.hero-title .solid {
  color: rgba(255, 255, 255, 0.94);
}

.hero-captions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(13px, 1.4vw, 17px);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-sub {
  max-width: 600px;
  margin: clamp(24px, 5vh, 48px) auto 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.62;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.55);
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-strip {
  position: relative;
  z-index: 4;
  margin-top: auto;
  display: flex;
  justify-content: center;
  gap: clamp(20px, 5vw, 70px);
  flex-wrap: wrap;
  max-width: var(--shell);
  margin: auto auto 0;
  padding: 0 clamp(14px, 3vw, 26px) clamp(40px, 8vh, 80px);
  text-align: center;
}

.hero-strip .m-value {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.hero-strip .m-label {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12.5px;
}

/* Scroll-Reveal-Text */

.reveal {
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(24px, 4.2vw, 52px);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -0.035em;
  text-align: center;
}

.reveal span {
  color: rgba(255, 255, 255, 0.14);
  transition: color 0.25s linear;
}

.reveal span.lit {
  color: #fff;
}

/* Live-Chip */

.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease;
}

.live-chip:hover {
  background: rgba(255, 255, 255, 0.18);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-3);
  flex-shrink: 0;
}

.dot.ok {
  background: var(--up);
  box-shadow: 0 0 0 3px rgba(77, 219, 160, 0.2);
  animation: pulse 2.6s ease-in-out infinite;
}
.dot.warn {
  background: var(--degraded);
  box-shadow: 0 0 0 3px rgba(240, 168, 60, 0.2);
}
.dot.bad {
  background: var(--down);
  box-shadow: 0 0 0 3px rgba(246, 85, 140, 0.2);
}
.dot.maint {
  background: var(--maint);
  box-shadow: 0 0 0 3px rgba(127, 140, 255, 0.2);
}

/* ============================================================
   LAYOUT
   ============================================================ */

.shell {
  position: relative;
  z-index: 1;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(26px, 5vh, 56px) clamp(14px, 3vw, 26px) 100px;
}

.shell.narrow {
  max-width: 470px;
}

.section {
  margin-top: clamp(56px, 11vh, 120px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 28px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-family: var(--font-pixel);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kicker i {
  color: var(--accent);
  font-size: 9px;
}

h1,
h2,
h3 {
  letter-spacing: -0.035em;
  font-weight: 600;
  line-height: 1.1;
}

.h-page {
  font-size: clamp(34px, 5.6vw, 60px);
  letter-spacing: -0.045em;
}

.h-section {
  font-size: clamp(23px, 3.2vw, 36px);
  letter-spacing: -0.04em;
}

.h-card {
  font-size: 17px;
  letter-spacing: -0.025em;
}

.dim {
  color: var(--text-2);
}

.dim-2 {
  color: var(--text-3);
  font-size: 13px;
}

.lede {
  max-width: 62ch;
  margin-top: 16px;
  color: var(--text-2);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.65;
}

.page-head {
  margin-bottom: clamp(28px, 5vh, 46px);
}

.page-head .kicker {
  margin-bottom: 18px;
}

.head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.grid {
  display: grid;
  gap: clamp(14px, 1.8vw, 20px);
}

.g2 {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.g3 {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.g4 {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(14px, 1.8vw, 20px);
  align-items: start;
}

/* ============================================================
   KARTEN
   ============================================================ */

.card {
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: linear-gradient(var(--glass), var(--glass)) padding-box, var(--edge-soft) border-box;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: clamp(18px, 2.4vw, 26px);
}

.card.tight {
  padding: 16px 18px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: linear-gradient(var(--glass), var(--glass)) padding-box, var(--edge-soft) border-box;
  backdrop-filter: blur(18px);
  text-decoration: none;
  color: inherit;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease,
    box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  background: linear-gradient(var(--glass), var(--glass)) padding-box, var(--edge) border-box;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.6);
}

.project-card .body {
  padding: 18px 20px 22px;
}

.project-card p {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 13.8px;
  line-height: 1.62;
}

/* Vorschau-Mockup */

.preview {
  position: relative;
  height: 190px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(130% 130% at 20% 0%, color-mix(in srgb, var(--pc, #9b8cff) 38%, #0b0916), #0b0916 72%);
}

.preview.tall {
  height: clamp(280px, 40vw, 420px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.win {
  position: absolute;
  left: 11%;
  right: -8%;
  top: 17%;
  bottom: -16%;
  border: 1px solid var(--line-2);
  border-right: 0;
  border-bottom: 0;
  border-radius: 12px 0 0 0;
  background: rgba(10, 8, 18, 0.9);
  box-shadow: -18px -12px 44px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .win {
  transform: translate(-8px, -8px);
}

.win-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 11px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.win-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.win-url {
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-3);
  font-size: 9.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}

.win-body {
  padding: 16px 16px 0;
}

.bar {
  height: 8px;
  margin-bottom: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.11);
}

.bar.lead {
  height: 11px;
  width: 55%;
  background: linear-gradient(90deg, var(--pc, #9b8cff), transparent);
  opacity: 0.9;
}
.bar.w75 {
  width: 75%;
}
.bar.w50 {
  width: 50%;
  opacity: 0.6;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.tiles span {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.preview.tall .tiles span {
  height: 74px;
}

.preview-note {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  color: var(--text-2);
  font-size: 12px;
}

/* ---------------- echte Vorschau ---------------- */

.preview img,
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .preview img {
  transform: scale(1.04);
}

.preview.has-shot {
  background: #0b0916;
}

/* Browserrahmen auf der Detailseite */

.frame {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: rgba(10, 8, 18, 0.85);
  backdrop-filter: blur(18px);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.frame-bar .dots {
  display: flex;
  gap: 6px;
}

.frame-bar .dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.frame-url {
  flex: 1;
  min-width: 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-3);
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frame-tools {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.frame-tool {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--text-3);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.frame-tool:hover {
  background: var(--surface-2);
  color: var(--text);
}

.frame-tool.is-active {
  background: var(--surface-2);
  border-color: var(--line);
  color: #fff;
}

.frame-stage {
  position: relative;
  height: clamp(300px, 46vw, 520px);
  overflow: hidden;
  background: radial-gradient(120% 130% at 20% 0%, color-mix(in srgb, var(--pc, #9b8cff) 26%, #08060f), #08060f 72%);
}

.frame-stage.is-mobile {
  background: radial-gradient(120% 130% at 50% 0%, rgba(255, 255, 255, 0.05), transparent 60%), #0a0813;
}

.shot,
.frame-live {
  position: absolute;
  inset: 0;
}

.frame-live {
  overflow: hidden;
}

.frame-live iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1440px;
  height: 1100px;
  border: 0;
  transform-origin: top left;
  background: #0b0916;
}

/* niemand soll versehentlich in der fremden Seite klicken */
.frame-live::after {
  content: "";
  position: absolute;
  inset: 0;
}

.frame-hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  gap: 14px;
  background: rgba(8, 6, 15, 0.72);
  backdrop-filter: blur(4px);
}

.frame-hint p {
  max-width: 34ch;
  margin: 0 auto;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.6;
}

.frame-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 12.5px;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================================
   BADGES / TAGS
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge.plain::before {
  display: none;
}

.badge.green,
.badge.live,
.badge.geschlossen,
.badge.umgesetzt,
.badge.behoben {
  color: var(--up);
  border-color: rgba(77, 219, 160, 0.3);
  background: rgba(77, 219, 160, 0.1);
}

.badge.amber,
.badge.offen,
.badge.neu,
.badge.in-arbeit,
.badge.untersuchung,
.badge.wartung {
  color: var(--degraded);
  border-color: rgba(240, 168, 60, 0.3);
  background: rgba(240, 168, 60, 0.1);
}

.badge.red,
.badge.hoch,
.badge.kritisch,
.badge.ausfall {
  color: var(--down);
  border-color: rgba(246, 85, 140, 0.32);
  background: rgba(246, 85, 140, 0.1);
}

.badge.blue,
.badge.in-bearbeitung,
.badge.geplant,
.badge.admin,
.badge.beobachtung,
.badge.identifiziert,
.badge.teilausfall {
  color: var(--maint);
  border-color: rgba(127, 140, 255, 0.34);
  background: rgba(127, 140, 255, 0.12);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.tag {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 11.5px;
}

/* ============================================================
   KPI
   ============================================================ */

.kpi {
  padding: 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: linear-gradient(var(--glass), var(--glass)) padding-box, var(--edge-soft) border-box;
  backdrop-filter: blur(18px);
}

.kpi .k-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-3);
  font-size: 12.5px;
}

.kpi .k-value {
  margin-top: 14px;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.kpi .k-label {
  margin-top: 8px;
  color: var(--text-3);
  font-size: 12.5px;
}

/* ============================================================
   LISTEN
   ============================================================ */

.list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.row:hover {
  background: var(--surface-2);
  border-color: var(--line-2);
  transform: translateX(2px);
}

.row.static,
.row.static:hover {
  cursor: default;
  transform: none;
}

.row .r-main {
  flex: 1;
  min-width: 0;
}

.row .r-title {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.015em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row .r-sub {
  margin-top: 4px;
  color: var(--text-3);
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row .r-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.empty {
  padding: 38px 20px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--text-3);
  font-size: 14px;
  text-align: center;
}

.bullets {
  list-style: none;
  display: grid;
  gap: 11px;
}

.bullets li {
  position: relative;
  padding-left: 24px;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.55;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--pc, var(--accent));
}

/* ============================================================
   THREAD
   ============================================================ */

.thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0;
}

.msg {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.msg.team {
  border-color: rgba(155, 140, 255, 0.3);
  background: var(--accent-soft);
}

.msg-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--text-3);
  font-size: 12.5px;
  flex-wrap: wrap;
}

.msg-head strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.msg-body {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.62;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ============================================================
   FORMULARE
   ============================================================ */

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-family: var(--font);
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'><path d='M4 6l4 4 4-4' stroke='%23b0abc8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.55;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-3);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(155, 140, 255, 0.6);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(155, 140, 255, 0.16);
}

.field select option {
  background: #14111f;
  color: var(--text);
}

.field-hint {
  margin-top: 6px;
  color: var(--text-3);
  font-size: 12px;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-foot {
  margin-top: 18px;
  text-align: center;
  color: var(--text-3);
  font-size: 13.5px;
}

.form-foot a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
}

.note {
  padding: 12px 15px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.55;
}

.note.err {
  color: #ffcfe0;
  border-color: rgba(246, 85, 140, 0.34);
  background: rgba(246, 85, 140, 0.1);
}

.note.ok {
  color: #cbffe9;
  border-color: rgba(77, 219, 160, 0.34);
  background: rgba(77, 219, 160, 0.1);
}

.note.info {
  border-color: rgba(155, 140, 255, 0.32);
  background: var(--accent-soft);
}

/* ============================================================
   TABS
   ============================================================ */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 26px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(14px);
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.tab:hover {
  color: #fff;
}

.tab.is-active {
  background: #fff;
  color: #0c0a14;
  font-weight: 600;
}

.tab .count {
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.tab.is-active .count {
  background: rgba(0, 0, 0, 0.12);
}

/* ============================================================
   STATUSSEITE
   ============================================================ */

.status-banner {
  padding: 22px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: linear-gradient(var(--glass), var(--glass)) padding-box, var(--edge) border-box;
  backdrop-filter: blur(18px);
}

.status-banner .sb-top {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.status-banner h2 {
  font-size: clamp(19px, 2.4vw, 25px);
  letter-spacing: -0.03em;
}

.status-banner .sb-meta {
  margin-left: auto;
  color: var(--text-3);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.uptime-strip {
  display: flex;
  gap: 3px;
  height: 8px;
  margin-top: 18px;
}

.uptime-strip i {
  flex: 1;
  border-radius: 3px;
  background: var(--up);
}

.uptime-strip i.degraded {
  background: var(--degraded);
}
.uptime-strip i.down {
  background: var(--down);
}
.uptime-strip i.none {
  background: rgba(255, 255, 255, 0.08);
}

.legend {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend .l-up {
  background: var(--up);
}
.legend .l-deg {
  background: var(--degraded);
}
.legend .l-down {
  background: var(--down);
}
.legend .l-maint {
  background: var(--maint);
}

.comp {
  padding: 20px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: linear-gradient(var(--glass), var(--glass)) padding-box, var(--edge-soft) border-box;
  backdrop-filter: blur(16px);
  transition: background 0.3s ease;
}

.comp:hover {
  background: linear-gradient(var(--glass), var(--glass)) padding-box, var(--edge) border-box;
}

.comp + .comp {
  margin-top: 12px;
}

.comp-top {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.comp-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(150deg, rgba(138, 123, 255, 0.32), rgba(239, 143, 220, 0.18));
  border: 1px solid rgba(180, 165, 255, 0.32);
  box-shadow: 0 0 22px rgba(138, 123, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #d6ceff;
  font-size: 14px;
  flex-shrink: 0;
}

.comp-icon.is-up {
  background: linear-gradient(150deg, rgba(77, 219, 160, 0.32), rgba(77, 219, 160, 0.08));
  border-color: rgba(77, 219, 160, 0.4);
  box-shadow: 0 0 22px rgba(77, 219, 160, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--up);
}
.comp-icon.is-down {
  background: linear-gradient(150deg, rgba(246, 85, 140, 0.32), rgba(246, 85, 140, 0.08));
  border-color: rgba(246, 85, 140, 0.4);
  box-shadow: 0 0 22px rgba(246, 85, 140, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--down);
}
.comp-icon.is-degraded {
  background: linear-gradient(150deg, rgba(240, 168, 60, 0.32), rgba(240, 168, 60, 0.08));
  border-color: rgba(240, 168, 60, 0.4);
  box-shadow: 0 0 22px rgba(240, 168, 60, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--degraded);
}

.comp-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.comp-desc {
  margin-top: 3px;
  color: var(--text-3);
  font-size: 13px;
}

.comp-link {
  margin-left: auto;
  color: var(--text-3);
  font-size: 12.5px;
  text-decoration: none;
  white-space: nowrap;
}

.comp-link:hover {
  color: var(--text);
}

.comp-metrics {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 10px;
  flex-wrap: wrap;
}

.range-chip {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 500;
}

.comp-metrics .m-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}

.comp-metrics .m-pct {
  color: var(--text);
  font-weight: 600;
}

.m-state.up {
  color: var(--up);
  font-weight: 600;
}
.m-state.down {
  color: var(--down);
  font-weight: 600;
}
.m-state.degraded {
  color: var(--degraded);
  font-weight: 600;
}
.m-state.maintenance {
  color: var(--maint);
  font-weight: 600;
}
.m-state.unknown {
  color: var(--text-3);
  font-weight: 600;
}

.bars {
  display: flex;
  align-items: stretch;
  gap: 4px;
  height: 40px;
}

.bars i {
  flex: 1;
  min-width: 5px;
  border-radius: 4px;
  background: var(--up);
  transition: transform 0.16s ease, filter 0.16s ease;
}

.bars i.degraded {
  background: var(--degraded);
}
.bars i.down {
  background: var(--down);
}
.bars i.maintenance {
  background: var(--maint);
}
.bars i.none {
  background: rgba(255, 255, 255, 0.07);
}

.bars i:hover {
  transform: scaleY(1.12);
  filter: brightness(1.2);
}

.bars-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  color: var(--text-3);
  font-size: 11.5px;
}

/* Incidents */

.incident {
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: linear-gradient(var(--glass), var(--glass)) padding-box, var(--edge-soft) border-box;
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.incident + .incident {
  margin-top: 12px;
}

.incident-head {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
}

.incident-head:hover {
  background: rgba(255, 255, 255, 0.03);
}

.incident-tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.incident-tag.resolved {
  color: var(--up);
}
.incident-tag.open {
  color: var(--degraded);
}

.incident-title {
  margin-top: 5px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.incident-sub {
  margin-top: 4px;
  color: var(--text-3);
  font-size: 13px;
}

.incident-chevron {
  margin-left: auto;
  color: var(--text-3);
  transition: transform 0.25s ease;
}

.incident.open .incident-chevron {
  transform: rotate(180deg);
}

.incident-body {
  padding: 0 20px 20px;
  border-top: 1px solid var(--line);
  margin-top: -1px;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 18px;
}

.tl-item {
  position: relative;
  padding-left: 22px;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.tl-item::after {
  content: "";
  position: absolute;
  left: 6.5px;
  top: 18px;
  bottom: -18px;
  width: 1px;
  background: var(--line);
}

.tl-item:last-child::after {
  display: none;
}

.tl-status {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

.tl-time {
  margin-left: 8px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 400;
}

.tl-text {
  margin-top: 5px;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* ============================================================
   MODAL
   ============================================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(12px);
  animation: fade 0.22s ease both;
}

.modal-box {
  width: min(620px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: #100d1c;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75);
  animation: sheetIn 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-foot {
  position: relative;
  z-index: 1;
  padding: 32px clamp(14px, 3vw, 26px) 42px;
  border-top: 1px solid var(--line);
}

.foot-inner {
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-3);
  font-size: 12.5px;
}

.foot-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.site-foot a {
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-foot a:hover {
  color: var(--text);
}

/* ============================================================
   ANIMATION
   ============================================================ */

.up {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}

.up.in {
  opacity: 1;
  transform: none;
  filter: none;
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes sheetIn {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(77, 219, 160, 0.2);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(77, 219, 160, 0.05);
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .topnav,
  .topbar-actions {
    display: none;
  }

  .burger {
    display: flex;
  }

  .topbar-inner {
    padding-right: 10px;
  }

  .hero-captions {
    flex-direction: column;
    gap: 4px;
    margin-top: 16px;
  }

  .stage {
    min-height: auto;
  }

  .stage-inner {
    padding-bottom: 60px;
  }
}

@media (max-width: 560px) {
  .two {
    grid-template-columns: 1fr;
  }

  .comp-metrics .m-right {
    width: 100%;
    margin-left: 0;
  }

  .bars {
    height: 34px;
    gap: 3px;
  }

  .brand-name em {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .up {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .bg-aurora i,
  .bg-glow,
  .bg-grain,
  .stage-mist {
    animation: none !important;
  }

  .reveal span {
    color: #fff;
  }
}

/* ============================================================
   AUTH-SEITEN — Login / Registrieren / Code-Bestätigung
   ============================================================ */

.auth-back {
  position: fixed;
  top: clamp(16px, 3vh, 26px);
  left: clamp(16px, 3vw, 26px);
  z-index: 50;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(20, 17, 32, 0.55);
  backdrop-filter: blur(14px);
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.auth-back:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  transform: translateX(-2px);
}

.auth-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 6vh, 60px) clamp(14px, 4vw, 26px);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  background: linear-gradient(rgba(14, 12, 24, 0.72), rgba(14, 12, 24, 0.72)) padding-box,
    var(--edge) border-box;
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), 0 0 60px rgba(138, 123, 255, 0.12);
  padding: clamp(28px, 5vw, 40px);
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 26px;
}

.auth-brand .brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  margin-bottom: 16px;
  box-shadow: 0 0 30px rgba(138, 123, 255, 0.35);
}

.auth-brand h1 {
  font-size: clamp(22px, 3vw, 26px);
  letter-spacing: -0.03em;
}

.auth-brand p {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 13.5px;
}

/* ---------------- Code-Bestätigung (OTP) ---------------- */

.code-head {
  text-align: center;
  margin-bottom: 22px;
}

.code-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  margin-bottom: 16px;
  background: linear-gradient(150deg, rgba(138, 123, 255, 0.35), rgba(239, 143, 220, 0.2));
  border: 1px solid rgba(180, 165, 255, 0.35);
  box-shadow: 0 0 34px rgba(138, 123, 255, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #e2dcff;
  font-size: 20px;
}

.code-title {
  font-size: 20px;
  letter-spacing: -0.03em;
}

.code-sub {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.55;
}

.code-sub strong {
  color: var(--text);
}

.otp {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-bottom: 20px;
}

.otp-box {
  width: 44px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-family: var(--font);
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.otp-box:focus {
  border-color: rgba(155, 140, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(155, 140, 255, 0.18);
  transform: translateY(-1px);
}

.otp-box:disabled {
  opacity: 0.5;
}

.otp.shake {
  animation: otpShake 0.4s ease;
}

@keyframes otpShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(3px); }
}

.code-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 13px;
}

.link-btn {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--text-3);
  font-family: var(--font);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.link-btn:hover {
  color: var(--text);
}

.link-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 380px) {
  .otp-box {
    width: 38px;
    height: 48px;
    font-size: 19px;
  }
  .otp {
    gap: 6px;
  }
}
