/* =========================================================
   ULTRA FANCY THEME – groß, animiert, ohne externe Fonts
   ========================================================= */
:root{
  --bg: #070a14;
  --text: #eaf0ff;
  --muted: #a6b3d1;
  --card: rgba(18, 24, 45, 0.7);
  --card-solid: #12182d;
  --border: rgba(255,255,255,0.10);
  --brand: #78a7ff;
  --brand-2: #9a7bff;
  --brand-3: #4dd3ff;
  --ring: rgba(120, 167, 255, 0.5);
  --shadow-lg: 0 28px 90px rgba(0,0,0,.55);
  --shadow-md: 0 18px 46px rgba(0,0,0,.40);
  --glow: 0 0 60px rgba(120,167,255,.35);
}

/* Light Theme (per Toggle) */
:root.light{
  --bg: #f6f8ff;
  --text: #0f172a;
  --muted: #475569;
  --card: rgba(255,255,255,.72);
  --card-solid: #ffffff;
  --border: rgba(15,23,42,.10);
  --brand: #2c6efc;
  --brand-2: #6b5cff;
  --brand-3: #16b8ff;
  --ring: rgba(44,110,252,.35);
  --shadow-lg: 0 28px 90px rgba(2,6,23,.18);
  --shadow-md: 0 18px 46px rgba(2,6,23,.12);
  --glow: 0 0 60px rgba(44,110,252,.25);
}

/* Motion respect */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}

/* Base */
*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 10% 0%, rgba(120,167,255,.18), transparent 60%),
              radial-gradient(1200px 800px at 90% 30%, rgba(154,123,255,.14), transparent 60%),
              var(--bg);
  overflow-x: hidden;
}

/* Starfield canvas full-bleed */
#starfield{
  position: fixed;
  inset: 0;
  z-index: -4;
}

/* Aurora / Nebula Layer */
.aurora{
  position: fixed;
  inset: -20vmax;
  z-index: -3;
  filter: blur(60px) saturate(120%);
  opacity: .45;
  background:
    conic-gradient(from 0deg at 30% 40%, rgba(120,167,255,.45), transparent 30%),
    conic-gradient(from 0deg at 70% 60%, rgba(154,123,255,.45), transparent 35%),
    radial-gradient(60vmax 40vmax at 50% 20%, rgba(77,211,255,.28), transparent 70%);
  animation: auroraFlow 26s ease-in-out infinite alternate;
}
@keyframes auroraFlow{
  0%{ transform: translate3d(-2vmax,-1vmax,0) rotate(0.5deg) scale(1); }
  100%{ transform: translate3d(2vmax,1vmax,0) rotate(-0.5deg) scale(1.06); }
}

/* Animated grid */
.grid-bg{
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(transparent 95%, rgba(255,255,255,.06) 95%) 0 0/ 26px 26px,
    linear-gradient(90deg, transparent 95%, rgba(255,255,255,.06) 95%) 0 0/ 26px 26px;
  mask: radial-gradient(75% 65% at 50% 40%, #000 65%, transparent 100%);
  opacity: .35;
  animation: gridPan 24s linear infinite;
}
@keyframes gridPan{ to { background-position: 26px 26px, 26px 26px; } }

/* Grain overlay */
.grain{
  position: fixed; inset: -1px; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    radial-gradient(rgba(0,0,0,.05) 1px, transparent 1px);
  background-size: 2px 2px, 3px 3px;
  mix-blend-mode: overlay; opacity:.15;
}

/* Cursor Glow follower */
.cursor-glow{
  position: fixed;
  width: 40vmin; height: 40vmin;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(120,167,255,.26), transparent 60%);
  filter: blur(20px);
  transform: translate(-50%, -50%);
  z-index: -1;
}

/* Scrollbar progress */
.scrollbar{
  position: fixed; top: 0; left: 0; height: 4px; width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand-3));
  box-shadow: var(--glow);
  z-index: 99;
}

/* Layout */
.container{ width: min(1300px, 92vw); margin: 0 auto; }

.site-header{
  text-align: center;
  padding: 8vh 0 3vh;
}
.title{
  margin: 0 0 12px;
  font-size: clamp(48px, 8vw, 96px); /* biiig */
  line-height: 1.02;
  letter-spacing: .2px;
  position: relative;
  display: inline-block;
  text-shadow: 0 12px 40px rgba(0,0,0,.4);
}
.title-glow{
  position: absolute; left: -8px; right: -8px; bottom: -16px; height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand-3));
  filter: drop-shadow(0 0 22px rgba(120,167,255,.9));
  animation: glowSweep 3s ease-in-out infinite;
}
@keyframes glowSweep{
  0%,100%{ opacity:.65; transform: translateX(-8%); }
  50%{ opacity:1; transform: translateX(8%); }
}
.subtitle{
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(18px, 2.4vw, 24px);
  max-width: 900px;
  text-wrap: balance;
  opacity: .95;
}
.hero-actions{ margin-top: 22px; }
.pill, .pill-ghost{
  display: inline-block; padding: 14px 22px; border-radius: 999px; text-decoration: none;
  font-weight: 800; letter-spacing:.3px; font-size: 16px;
  background:
     linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.03)) padding-box,
     linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand-3)) border-box;
  border: 2px solid transparent; color: #fff; box-shadow: var(--shadow-md);
  transition: transform .18s ease, filter .18s ease;
}
.pill:hover{ transform: translateY(-2px); filter: saturate(1.05); }
.pill-ghost{
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)) padding-box;
  color: var(--text);
}

/* Cards */
.cards{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 34px;
  padding: 3vh 0 10vh;
}
.card{
  grid-column: span 12;
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: min(3.2vmax, 32px);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  transform: translateY(16px) scale(.985);
  opacity: 0;
  will-change: transform, opacity;
  overflow: clip;
}
.card::before{
  content:"";
  position:absolute; inset:-1px; border-radius: 26px; pointer-events:none;
  background: radial-gradient(900px 260px at var(--mx,50%) -10%, rgba(255,255,255,.12), transparent 60%);
  opacity:.8;
}
.card.revealed{
  animation: cardIn .7s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes cardIn{
  from{ transform: translateY(30px) scale(.98); opacity: 0; }
  to  { transform: translateY(0)    scale(1);   opacity: 1; }
}
@media (min-width: 800px){ .card{ grid-column: span 6; } }
@media (min-width: 1180px){ .card{ grid-column: span 4; } }

.card-head{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  margin-bottom: 12px;
}
.card-title{ margin:0; font-size: clamp(22px, 2.2vw, 26px); font-weight: 800; letter-spacing:.2px; }
.badge{
  display:inline-block; padding: 6px 10px; font-size: 12px; border-radius: 999px; letter-spacing:.3px; font-weight: 800;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #fff; box-shadow: var(--glow);
}
.badge.ghost{
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
  color: var(--text); border: 1px dashed var(--border); box-shadow: none;
}

/* Links */
.link-list{
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 18px;
}
.desc{ margin: 10px 2px 0; color: var(--muted); font-size: 15px; }

/* SUPER SHINY BUTTONS */
.button{
  --pad: 18px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  text-decoration: none;
  color: #fff;
  padding: var(--pad) 22px;
  border-radius: 18px;
  font-weight: 800;
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: .2px;
  background:
     linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.03)) padding-box,
     linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand-3)) border-box;
  border: 2px solid transparent;
  box-shadow: 0 22px 60px rgba(120,167,255,.32);
  transform: translateZ(0);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  overflow: hidden;
}
/* shimmer */
.button::after{
  content:"";
  position:absolute; inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.16) 20%, transparent 40%);
  transform: translateX(-120%);
  transition: transform .7s ease;
}
.button:hover::after{ transform: translateX(120%); }
.button:hover{
  transform: translateY(-3px);
  box-shadow: 0 26px 70px rgba(120,167,255,.40);
  filter: saturate(1.06);
}
.button:active{ transform: translateY(0); }
.button:focus-visible{ outline: 3px solid var(--ring); outline-offset: 3px; }

.button.is-ghost{
  color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)) padding-box;
  box-shadow: 0 16px 40px rgba(0,0,0,.28);
}

.button-kbd{
  flex: 0 0 auto; font-weight: 900; opacity: .95;
}

/* Footer */
.site-footer{ border-top: 1px solid var(--border); padding: 18px 0 64px; text-align:center; }
.tiny{ margin: 0; color: var(--muted); font-size: 14px; }

/* Prefers-reduced-motion extras */
@media (prefers-reduced-motion: reduce){
  .aurora, .grid-bg, .grain, .cursor-glow{ display: none !important; }
}
