@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700;900&display=swap");

:root{
  --bg: #0e1623;
  --text: #f6f7fb;
  --muted: rgba(246,247,251,0.84);
  --outline: rgba(255,255,255,0.92);

  --linkTitle: clamp(32px, 4vw, 82px);
  --lead: clamp(14px, 1.3vw, 19px);
  --goSize: clamp(64px, 8vw, 140px);

  --gap: clamp(20px, 2.6vw, 36px);
  --pad: clamp(22px, 3vw, 48px);
  --panelW: min(1080px, 94vw);

  --radius: 18px;

  /* Maus-follow Variablen */
  --mx: 50%;
  --my: 50%;
}

*{ box-sizing: border-box; }
html, body{ height: 100vh; width: 100vw; overflow: hidden; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.stage{
  position: relative;
  min-height: 100svh;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
}

/* Maus-follow Light Spot (softer, größer, weniger “direkt”) */
.stage::before{
  content:"";
  position:absolute;
  inset:-28%;
  pointer-events:none;
  z-index:-1;

  /* Deutlich weicher: größerer Spot + weniger Weiß + längerer Falloff */
  background:
    radial-gradient(
      980px 820px at var(--mx) var(--my),
      rgba(255,255,255,0.07),
      rgba(255,255,255,0.00) 70%
    );
  mix-blend-mode: soft-light;     /* statt screen -> weniger “Scheinwerfer” */
  opacity: 0.80;
  filter: blur(10px);             /* weichzeichnen, damit’s “ambient” wird */
  will-change: background;
  transform: translateZ(0);
}

.bg{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 900px at 18% 32%,
      rgba(39, 72, 116, 0.16),        /* minimal reduziert, wirkt natürlicher */
      rgba(13,24,38,0.10) 42%,       /* heller als vorher */
      rgba(5,10,22,0.36) 85%),       /* weniger dunkel am Rand */
    linear-gradient(130deg,
      rgba(23,38,64,0.24),           /* insgesamt heller */
      rgba(11,21,35,0.08) 48%,
      rgba(5,10,20,0.30) 100%),
    url("Hintergrundbild_Startseite_3.jpg") center/cover no-repeat;

  transform: scale(1.02);
  will-change: transform;

  /* heller, aber nicht ausgewaschen */
  filter: saturate(1.06) brightness(1.18) contrast(1.02);
  z-index: -4;
}

.grain{
  position: absolute;
  inset: -40%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.07;                   /* einen Tick softer */
  pointer-events: none;
  z-index: -3;
  will-change: transform;
  transform: translateZ(0) rotate(7deg);
}

.vignette{
  position: absolute;
  inset: 0;

  /* Vignette deutlich heller: weniger Abdunklung, mehr “offen” */
  background: radial-gradient(1200px 900px at 24% 46%,
    rgba(255,255,255,0.08) 0%,
    rgba(12,18,34,0.14) 18%,
    rgba(10,14,26,0.28) 52%);

  pointer-events: none;
  z-index: -2;
  will-change: transform;
  transform: translateZ(0);
}

.fg{
  position: absolute;
  right: clamp(18px, 3vw, 58px);
  bottom: clamp(18px, 3vw, 52px);
  width: clamp(200px, 19vw, 340px);
  height: auto;
  filter: drop-shadow(0 22px 46px rgba(0,0,0,0.40)); /* minimal weicher */
  transform: translateZ(0);
  z-index: -1;
  opacity: 0.92;
  pointer-events: none;
  will-change: transform;
}

@media (max-width: 899px){
  .fg{ display: none; }
}

.safe{
  height: 100vh;
  width: 100%;
  padding: var(--pad);
  padding-left: calc(var(--pad) + env(safe-area-inset-left));
  padding-right: calc(var(--pad) + env(safe-area-inset-right));
  padding-top: calc(var(--pad) + env(safe-area-inset-top));
  padding-bottom: calc(var(--pad) + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.panel{
  position: relative;
  width: var(--panelW);
  margin: 0;
  text-align: left;
  will-change: transform;
  z-index: 1;
  opacity: 0;
  transform: translateY(18px);
  animation: enter 0.75s cubic-bezier(.2,.8,.2,1) .05s forwards;
}

.goWrap{
  display: block;
  position: relative;
  padding: 0;
  max-width: min(1200px, 100%);
  margin-bottom: clamp(12px, 1.8vw, 18px);
  border: none;
  box-shadow: none;
  background: none;

  animation: goFloat 10s cubic-bezier(.4,.8,.4,1) infinite;
}

@keyframes goFloat{
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(0,-8px,0) scale(1.012); }
  100% { transform: translate3d(0,0,0) scale(1); }
}

.go{
  display: inline-flex;
  align-items: baseline;
  gap: clamp(10px, 1.4vw, 18px);
  margin: 0;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 900;
  font-size: var(--goSize);

  position: relative;
  transform: translateZ(0);
  will-change: transform, filter;

  color: transparent;
  -webkit-text-stroke: 2px var(--outline);
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,0.50));

  animation: strokeBreath 5.5s ease-in-out infinite;
}

@keyframes strokeBreath{
  0%, 100% { -webkit-text-stroke-width: 2px; }
  50%      { -webkit-text-stroke-width: 2.6px; }
}

.go::before{
  content: attr(data-text);
  position: absolute;
  inset: 0;

  display: inline-flex;
  align-items: baseline;
  gap: clamp(10px, 1.4vw, 18px);
  line-height: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;

  -webkit-text-stroke: 0;

  background: linear-gradient(
    120deg,
    rgba(255,255,255,0.12),
    rgba(255,255,255,0.58),
    rgba(255,255,255,0.18)
  );
  background-size: 220% 220%;
  background-position: 0% 50%;

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  filter: blur(1.6px) saturate(1.25) contrast(1.05);
  mix-blend-mode: screen;
  opacity: 0.98;

  pointer-events: none;

  animation: glassShimmer 3.8s ease-in-out infinite;
  will-change: background-position, filter, opacity;
}

@keyframes glassShimmer{
  0%   { background-position: 0% 50%;   filter: blur(1.9px) saturate(1.20); opacity: 0.92; }
  50%  { background-position: 100% 50%; filter: blur(1.25px) saturate(1.32); opacity: 1; }
  100% { background-position: 0% 50%;   filter: blur(1.9px) saturate(1.20); opacity: 0.92; }
}

.go::after{
  content: attr(data-text);
  position: absolute;
  inset: 0;

  display: inline-flex;
  align-items: baseline;
  gap: clamp(10px, 1.4vw, 18px);
  line-height: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;

  -webkit-text-stroke: 0;
  color: rgba(255,255,255,0.32);
  filter: blur(9px);
  opacity: 0.62;
  mix-blend-mode: normal;
  pointer-events: none;
}

.dots{
  position: relative;
  letter-spacing: 0.16em;
  transform: translateY(-0.04em);
  opacity: 0.95;

  color: transparent;
  -webkit-text-stroke: 2px var(--outline);
  -webkit-text-fill-color: transparent;
}

.dots::before{
  content: "...";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    120deg,
    rgba(255,255,255,0.12),
    rgba(255,255,255,0.52),
    rgba(255,255,255,0.18)
  );
  background-size: 220% 220%;
  background-position: 0% 50%;

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  filter: blur(1.6px) saturate(1.25);
  mix-blend-mode: screen;
  opacity: 0.98;

  pointer-events: none;
  animation: glassShimmer 3.8s ease-in-out infinite;
}

@media (min-width: 1024px){
  .go{
    letter-spacing: 0.16em;
    transform: scaleX(1.06);
    transform-origin: left center;
  }
}
@media (min-width: 1440px){
  .go{
    letter-spacing: 0.2em;
    transform: scaleX(1.1);
  }
}

.cta{
  display: grid;
  gap: var(--gap);
  margin-top: clamp(18px, 2.2vw, 28px);
  justify-items: start;
}

.card{
  position: relative;
  padding: 0;
  border-radius: 0;
  border: none;
  background: none;
  box-shadow: none;
  overflow: hidden;
  transform: translateZ(0);
}

a{
  color: inherit;
  text-decoration: none;
}

.title{
  font-size: var(--linkTitle);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.03;
  margin: 0;
  display: inline-block;
  text-shadow: 0 10px 32px rgba(0,0,0,0.38);
}

.subtitle{
  margin: 8px 0 0 0;
  font-size: var(--lead);
  font-weight: 900;
  color: var(--muted);
  line-height: 1.38;
  text-shadow: 0 10px 28px rgba(0,0,0,0.32);
}

.link{
  display: inline-block;
  transform: translateY(0);
  transition: transform 0.25s ease;
}

.link::after{
  content: "";
  display: block;
  height: 2px;
  width: 100%;
  background: rgba(255,255,255,0.72);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
  margin-top: 10px;
  opacity: 0.9;
}

.card:hover .link{ transform: translateY(-2px); }
.card:hover .link::after{ transform: scaleX(1); }

.card:focus-within .link{
  outline: 2px solid rgba(255,255,255,0.55);
  outline-offset: 6px;
}

@keyframes enter{
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce){
  .panel{
    animation: none;
    opacity: 1;
    transform: none;
  }
  .bg{
    transform: none !important;
  }
  .stage::before{
    display: none;
  }
  .goWrap, .go, .go::before, .go::after, .dots::before{
    animation: none !important;
  }
  .link, .link::after{ transition: none; }
}

@media (max-width: 720px){
  .safe{
    align-items: flex-start;
  }
}

@media (max-width: 560px){
  body{ overflow: hidden; }
  .stage{
    min-height: 100svh;
    height: auto;
    overflow: hidden;
  }
  .panel{
    margin: 14svh auto 24px auto;
    width: min(860px, calc(100vw - 24px));
  }

  .title, .subtitle {

  text-shadow: 0 10px 28px rgba(0,0,0,0.42);
  }
}
