:root {
  --ink: #00161c;
  --ink-soft: #02262e;
  --panel: #063039;
  --card: #083a44;
  --gold: #ffbe37;
  --gold-soft: rgba(255, 190, 55, .18);
  --cyan-border: #117e8b;
  --cyan: #89d2dc;
  --cyan-bright: #50dce8;
  --white: #f5f4e8;
  --muted: #b0bbbe;
  --danger: #dc4c4c;
  --shadow: 0 28px 80px rgba(0, 0, 0, .28);
  --max: 1180px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 85% 8%, rgba(17, 126, 139, .15), transparent 28rem),
    linear-gradient(180deg, #00161c 0%, #001219 100%);
  color: var(--white);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .2;
  background-image:
    linear-gradient(rgba(137, 210, 220, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(137, 210, 220, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  z-index: -1;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  background: var(--gold);
  color: var(--ink);
  padding: .65rem .85rem;
  z-index: 999;
  text-decoration: none;
  font-weight: 800;
}
.skip-link:focus { transform: none; }

.shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(0, 22, 28, .9);
  border-bottom: 1px solid rgba(255, 190, 55, .42);
  backdrop-filter: blur(16px);
}
.site-header.compact { position: relative; }
.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
}
.brand-name {
  font: 800 clamp(1.45rem, 2vw, 2.05rem)/1 Georgia, "Times New Roman", serif;
  letter-spacing: .025em;
  color: var(--gold);
}
.brand-kicker {
  margin-top: 8px;
  font-size: .68rem;
  letter-spacing: .13em;
  color: var(--cyan);
}

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .87rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: color .2s ease;
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--white); }
.main-nav .nav-cta {
  padding: .62rem .9rem;
  border: 1px solid var(--gold);
  color: var(--gold);
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 40px;
  border: 1px solid var(--cyan-border);
  background: var(--card);
  padding: 9px;
}
.nav-toggle span:not(.sr-only) { display: block; height: 2px; background: var(--gold); margin: 4px 0; }

.hero {
  min-height: calc(100svh - 86px);
  display: grid;
  align-items: center;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid rgba(17, 126, 139, .55);
}
.section-grid::after {
  content: "";
  position: absolute;
  right: -12vw;
  top: 10%;
  width: 52vw;
  height: 52vw;
  max-width: 760px;
  max-height: 760px;
  border: 1px solid rgba(80, 220, 232, .09);
  border-radius: 50%;
  box-shadow: inset 0 0 0 70px rgba(17, 126, 139, .025), inset 0 0 0 140px rgba(17, 126, 139, .025);
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(30px, 6vw, 90px);
  padding-block: 90px;
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan-bright);
  font-size: .73rem;
  letter-spacing: .17em;
  font-weight: 800;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; }
h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--white);
  letter-spacing: -.025em;
}
h1 { max-width: 800px; font-size: clamp(3.1rem, 7vw, 6.8rem); line-height: .96; }
h1 span { color: var(--gold); }
h2 { font-size: clamp(2.3rem, 4.4vw, 4.6rem); line-height: 1.02; }
h3 { font-size: 1.35rem; }
.hero-lead {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .72rem 1.05rem;
  border: 1px solid transparent;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .075em;
  font-size: .78rem;
  font-weight: 800;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.button-primary:hover { background: #ffd16b; }
.button-ghost { border-color: var(--cyan-border); color: var(--cyan); background: rgba(8, 58, 68, .32); }
.button-ghost:hover { border-color: var(--cyan-bright); color: var(--white); }
.button-small { min-height: 40px; padding: .5rem .75rem; font-size: .7rem; }
.signal-strip {
  margin-top: 38px;
  display: flex;
  gap: 24px;
  color: var(--cyan);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.signal-strip i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: #44d76c;
  box-shadow: 0 0 12px rgba(68, 215, 108, .65);
}

.hero-visual { position: relative; min-height: 500px; display: grid; place-items: center; }
.radar-lines {
  position: absolute;
  width: min(38vw, 470px);
  aspect-ratio: 1;
  border: 1px solid rgba(137, 210, 220, .28);
  border-radius: 50%;
}
.radar-lines::before, .radar-lines::after {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(137, 210, 220, .12);
  border-radius: inherit;
}
.radar-lines::after { inset: 28%; }
.porthole {
  position: relative;
  z-index: 2;
  width: min(31vw, 360px);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 14px;
  background: linear-gradient(145deg, #d59427, var(--gold), #795015);
  box-shadow: 0 0 0 8px var(--panel), 0 0 0 9px rgba(255, 190, 55, .38), var(--shadow);
}
.porthole::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 2px dotted rgba(0, 22, 28, .52);
}
.porthole-inner {
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(80,220,232,.16), transparent 45%),
    #02262e;
  border: 4px solid #00161c;
}
.porthole-inner img { width: 92%; transform: translateY(9%); filter: drop-shadow(0 18px 24px rgba(0,0,0,.4)); }
.porthole-label {
  position: absolute;
  left: 50%;
  bottom: -48px;
  transform: translateX(-50%);
  white-space: nowrap;
  color: var(--gold);
  font-size: .69rem;
  letter-spacing: .14em;
  font-weight: 800;
}
.coord { position: absolute; color: rgba(137, 210, 220, .66); font-size: .62rem; letter-spacing: .16em; }
.coord-top { top: 11%; right: -10%; }
.coord-bottom { bottom: 8%; left: 3%; }

.section { padding: clamp(90px, 10vw, 145px) 0; }
.section-tinted {
  background: linear-gradient(180deg, rgba(6, 48, 57, .68), rgba(4, 43, 51, .62));
  border-top: 1px solid rgba(17, 126, 139, .32);
  border-bottom: 1px solid rgba(17, 126, 139, .32);
}
.split-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
.section-heading h2 { max-width: 720px; }
.section-heading.horizontal { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 48px; }
.prose-card {
  padding: clamp(28px, 4vw, 50px);
  background: linear-gradient(145deg, rgba(8,58,68,.75), rgba(6,48,57,.46));
  border: 1px solid var(--cyan-border);
  border-top-color: var(--gold);
  box-shadow: var(--shadow);
}
.prose-card p { margin: 0 0 22px; color: var(--muted); }
.prose-card p:last-child { margin-bottom: 0; }
.lead { color: var(--white) !important; font-size: clamp(1.1rem, 1.8vw, 1.35rem); }
.text-link { color: var(--gold); text-decoration: none; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; font-size: .78rem; }
.text-link span { display: inline-block; margin-left: 5px; transition: transform .18s; }
.text-link:hover span { transform: translateX(4px); }
.section-note { color: var(--muted); margin: 0; }

.card-grid { display: grid; gap: 18px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.info-card {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--cyan-border);
  background: rgba(8, 58, 68, .64);
  position: relative;
  overflow: hidden;
}
.info-card::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -24px;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(255,190,55,.25);
  transform: rotate(45deg);
}
.card-index { display: block; color: var(--gold); font-size: .68rem; letter-spacing: .15em; font-weight: 800; margin-bottom: 58px; }
.info-card h3 { font-family: Georgia, "Times New Roman", serif; color: var(--white); font-size: 1.75rem; }
.info-card p { color: var(--muted); margin: 13px 0 0; }

.project-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #00161c;
}

.project-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--cyan-border);
}

.project-feature {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  border: 1px solid var(--gold);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.project-copy { padding: clamp(34px, 5vw, 64px); }
.project-tag { color: var(--cyan-bright); font-size: .68rem; letter-spacing: .15em; font-weight: 800; }
.project-copy h3 { margin-top: 14px; font: 800 clamp(2rem, 4vw, 3.5rem)/1.03 Georgia, "Times New Roman", serif; color: var(--gold); }
.project-copy p { max-width: 620px; color: var(--muted); margin: 22px 0 0; }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.project-meta span { border: 1px solid var(--cyan-border); color: var(--cyan); padding: .34rem .55rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }

@media (min-width: 901px) {
  #projects {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  #projects .section-heading.horizontal {
    margin-bottom: 28px;
    align-items: end;
  }

  #projects .section-heading h2 {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(2.8rem, 4.2vw, 4rem);
    line-height: 1;
  }

  #projects .project-copy {
    padding: 30px 40px;
  }

  #projects .project-copy h3 {
    margin-top: 12px;
    font-size: clamp(2.2rem, 3.4vw, 3.2rem);
  }

  #projects .project-copy p {
    margin-top: 16px;
  }

  #projects .project-meta {
    margin-top: 20px;
  }

  #projects .project-visual {
    padding: 18px;
  }
}

/* Maschinenraum kompakter halten, damit der Projektbereich auf Desktop
   möglichst vollständig in eine Bildschirmhöhe passt. */
#projects {
  padding-top: 54px;
  padding-bottom: 58px;
}

#projects .section-heading.horizontal {
  margin-bottom: 28px;
}

#projects .section-heading h2 {
  font-size: clamp(3rem, 5.2vw, 4.8rem);
  line-height: .95;
}

#projects .project-copy {
  padding: clamp(28px, 3.5vw, 44px);
}

#projects .project-copy h3 {
  font-size: clamp(2rem, 3.4vw, 3.1rem);
}

#projects .project-copy p {
  margin-top: 16px;
}

#projects .project-meta {
  margin-top: 20px;
}

#projects .project-visual {
  padding: 18px;
}
.project-console { min-height: 360px; background: #001116; border-left: 1px solid var(--gold); padding: 20px; display: flex; flex-direction: column; }
.console-bar { display: flex; gap: 7px; padding-bottom: 16px; border-bottom: 1px solid rgba(17,126,139,.45); }
.console-bar span { width: 8px; height: 8px; border: 1px solid var(--gold); }
.console-content { margin: auto 0; font-family: Consolas, "Courier New", monospace; font-size: clamp(.8rem, 1.2vw, .96rem); color: var(--cyan); }
.console-content p { margin: 12px 0; }
.console-content p:first-child { color: var(--gold); margin-bottom: 28px; }
.console-content span { color: var(--cyan-bright); }

.mascot-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(42px, 8vw, 100px); align-items: center; }
.mascot-frame {
  min-height: 390px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(17,126,139,.2) 50%, transparent 50.2%),
    linear-gradient(transparent 49.8%, rgba(17,126,139,.2) 50%, transparent 50.2%),
    #02262e;
  position: relative;
}
#krakthulhu .section-heading {
  margin-bottom: 42px;
}
.mascot-frame::before, .mascot-frame::after { content: ""; position: absolute; width: 24px; height: 24px; border-color: var(--cyan-bright); }
.mascot-frame::before { top: 12px; left: 12px; border-top: 1px solid; border-left: 1px solid; }
.mascot-frame::after { right: 12px; bottom: 12px; border-right: 1px solid; border-bottom: 1px solid; }
.mascot-frame img { width: min(68%, 280px); filter: drop-shadow(0 24px 30px rgba(0,0,0,.32)); }
.mascot-copy p { color: var(--muted); max-width: 630px; }
.quote { margin-top: 38px !important; padding-left: 18px; border-left: 2px solid var(--gold); color: var(--white) !important; font-family: Georgia, "Times New Roman", serif; font-size: 1.18rem; }
.quote span { display: block; color: var(--cyan); font: 600 .72rem "Segoe UI", sans-serif; letter-spacing: .08em; text-transform: uppercase; margin-top: 8px; }

.final-cta { padding-top: 90px; }
.final-cta-inner { border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); padding: 42px 0; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.final-cta h2 { font-size: clamp(2rem, 3.6vw, 3.5rem); }

.site-footer { padding: 38px 0; background: #001116; border-top: 1px solid rgba(17,126,139,.4); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-inner > div { display: flex; flex-direction: column; }
.footer-inner strong { color: var(--gold); font-family: Georgia, "Times New Roman", serif; letter-spacing: .05em; }
.footer-inner span { color: var(--muted); font-size: .74rem; margin-top: 6px; }
.footer-inner nav { display: flex; gap: 20px; }
.footer-inner nav a { color: var(--cyan); font-size: .78rem; text-decoration: none; }
.footer-inner nav a:hover { color: var(--white); }

.legal-main { min-height: calc(100svh - 170px); padding: 90px 0 120px; }
.legal-layout { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(40px, 8vw, 100px); align-items: start; }
.legal-layout .section-heading h1 { font: 800 clamp(3rem, 6vw, 5rem)/.98 Georgia, "Times New Roman", serif; color: var(--gold); }
.legal-card { padding: clamp(30px, 5vw, 58px); border: 1px solid var(--cyan-border); border-top-color: var(--gold); background: rgba(6,48,57,.72); }
.legal-card h2 { margin: 36px 0 10px; font: 700 1.35rem Georgia, "Times New Roman", serif; color: var(--gold); }
.legal-card p { color: var(--muted); }
.notice-box { padding: 18px 20px; background: rgba(255,190,55,.07); border-left: 3px solid var(--gold); }
.notice-box strong { color: var(--gold); }
.notice-box p { margin: 6px 0 0; }
.legal-hint { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(17,126,139,.5); font-size: .85rem; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

.stream-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.stream-copy,
.schedule-panel {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--cyan-border);
  background: rgba(8, 58, 68, .64);
}

.stream-copy {
  border-top-color: var(--gold);
}

.stream-copy .card-index,
.schedule-panel .card-index {
  margin-bottom: 34px;
}

.stream-copy h3,
.schedule-panel h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--white);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
}

.stream-copy p {
  color: var(--muted);
  margin: 18px 0 0;
}

.stream-copy .button {
  margin-top: 28px;
}

.schedule-panel {
  background:
    linear-gradient(145deg, rgba(8,58,68,.8), rgba(6,48,57,.5));
  border-top-color: var(--gold);
}

.schedule-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(17, 126, 139, .55);
}

.schedule-status {
  color: var(--cyan);
  border: 1px solid var(--cyan-border);
  padding: .35rem .55rem;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.stream-schedule {
  margin-top: 22px;
}

.schedule-empty {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .stream-layout {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button, .text-link span { transition: none; }
}

@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero-grid, .split-layout, .project-feature, .mascot-grid, .legal-layout { grid-template-columns: 1fr; }
  .hero-grid { padding-block: 72px 100px; }
  .hero-visual { min-height: 390px; }
  .porthole { width: min(70vw, 320px); }
  .radar-lines { width: min(82vw, 420px); }
  .project-console { border-left: 0; border-top: 1px solid var(--gold); min-height: 300px; }
  .card-grid.three { grid-template-columns: 1fr; }
  .info-card { min-height: 210px; }
  .card-index { margin-bottom: 34px; }
  .legal-layout .section-heading { position: static; }
}

@media (max-width: 760px) {
  #projects {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .shell { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 74px; }
  .brand-name { font-size: 1.35rem; }
  .brand-kicker { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: calc(100% + 1px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: #02262e;
    border: 1px solid var(--cyan-border);
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px; }
  .main-nav .nav-cta { margin-top: 6px; text-align: center; }
  h1 { font-size: clamp(2.8rem, 15vw, 4.7rem); }
  .hero-grid { padding-top: 56px; }
  .hero-visual { min-height: 350px; }
  .coord { display: none; }
  .section { padding: 82px 0; }
  .section-heading.horizontal, .final-cta-inner, .footer-inner { align-items: flex-start; flex-direction: column; }
  .section-heading.horizontal { margin-bottom: 36px; }
  .signal-strip { gap: 12px; flex-direction: column; }
  .mascot-frame { min-height: 320px; }
  .footer-inner nav { flex-wrap: wrap; }
  .site-header.compact .header-inner { flex-wrap: wrap; padding-block: 14px; }
}
