/* ==========================================================
   cortex-os — gemeinsames Stylesheet für index.html + ueber.html
   ========================================================== */

:root {
  --rot: #e5534b;
  --grund: #050505;
  --text: #e8e8e8;
  --gedimmt: #9a9a9a;
  --leise: #6a6a6a;
  --linie: rgba(255,255,255,.08);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--grund);
  color: var(--text);
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.75;
  overflow-x: hidden;
}
::selection { background: var(--rot); color: #fff; }
.rot { color: var(--rot); }
img { display: block; max-width: 100%; height: auto; }

/* ---------- Hintergrund: Punktraster + Glow ---------- */
.buehne {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 75%);
}
.glut {
  position: fixed;
  top: -30vh;
  left: 50%;
  width: 120vw;
  height: 90vh;
  transform: translateX(-50%);
  z-index: -2;
  background: radial-gradient(ellipse at center,
              rgba(229,83,75,.14) 0%,
              rgba(229,83,75,.05) 40%,
              transparent 70%);
  animation: atmen 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes atmen {
  0%, 100% { opacity: .7; }
  50%      { opacity: 1; }
}

/* ---------- Kopfleiste ---------- */
.kopf {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  background: rgba(5,5,5,.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transform: translateY(-100%);
  transition: transform .45s ease, border-color .45s ease;
}
.kopf.da {
  transform: translateY(0);
  border-bottom-color: var(--linie);
}
/* Unterseiten: Leiste sofort sichtbar */
.kopf.fest {
  transform: translateY(0);
  border-bottom-color: var(--linie);
}
.kopf .wortmarke {
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: .08em;
  text-decoration: none;
  color: var(--leise);
  transition: color .25s ease;
}
.kopf .wortmarke:hover { color: var(--text); }
.kopf nav { display: flex; gap: clamp(1rem, 3vw, 2.2rem); }
.kopf nav a {
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gedimmt);
  text-decoration: none;
  transition: color .25s ease;
}
.kopf nav a:hover,
.kopf nav a[aria-current="page"] { color: #fff; }
@media (max-width: 640px) { .kopf nav { gap: .9rem; } .kopf nav a { font-size: .7rem; letter-spacing: .08em; } }

/* ---------- Held ---------- */
header.held {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 1.5rem 5rem;
  position: relative;
}
.status {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--leise);
  display: flex;
  align-items: center;
  gap: .7em;
  margin-bottom: 2.2rem;
}
.punkt {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--rot);
  box-shadow: 0 0 12px rgba(229,83,75,.9);
  animation: puls 2.4s ease-in-out infinite;
}
@keyframes puls {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}
.marke {
  font-size: clamp(3.2rem, 12vw, 8.5rem);
  font-weight: 100;
  letter-spacing: .05em;
  line-height: 1.1;
  color: var(--leise);
}
.marke .rot { text-shadow: 0 0 60px rgba(229,83,75,.45); }
.claim {
  margin-top: 1.8rem;
  font-size: clamp(1.3rem, 3.2vw, 2rem);
  font-weight: 200;
  letter-spacing: .01em;
  line-height: 1.4;
  color: var(--text);
  max-width: 20em;
  text-wrap: balance;
}
.unterclaim {
  margin-top: 1.2rem;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 300;
  color: var(--gedimmt);
  max-width: 34em;
}
.runter {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--leise);
  text-decoration: none;
  font-size: 1.4rem;
  animation: winken 2.6s ease-in-out infinite;
}
@keyframes winken {
  0%, 100% { transform: translate(-50%, 0); opacity: .5; }
  50%      { transform: translate(-50%, 8px); opacity: 1; }
}

/* Held-Einstieg */
.status, .marke, .claim, .unterclaim {
  opacity: 0;
  transform: translateY(18px);
  animation: ankunft .9s ease forwards;
}
.marke      { animation-delay: 0s; }
.claim      { animation-delay: .25s; }
.unterclaim { animation-delay: .45s; }
@keyframes ankunft {
  to { opacity: 1; transform: translateY(0); }
}

/* Hintergrundbild im Held (optional) */
.heldbild {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
}
.heldbild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .35;
}

/* ---------- Aufschlag: Was ist Cortex ---------- */
.aufschlag {
  max-width: 62em;
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--linie);
}
.aufschlag p {
  font-size: clamp(1.35rem, 3.4vw, 2rem);
  font-weight: 200;
  line-height: 1.45;
  letter-spacing: .01em;
  color: var(--text);
  max-width: 20em;
}
.aufschlag p + p {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 300;
  color: var(--gedimmt);
  max-width: 34em;
}

/* ---------- Abschnitte ---------- */
main {
  max-width: 62em;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem) 7rem;
}
section {
  display: grid;
  grid-template-columns: minmax(0, 16em) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  border-top: 1px solid var(--linie);
}
@media (max-width: 720px) {
  section { grid-template-columns: 1fr; gap: 1.2rem; }
}
.nummer {
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .2em;
  color: var(--rot);
  margin-bottom: .9rem;
}
h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 200;
  letter-spacing: .02em;
  line-height: 1.25;
}
section p {
  font-size: 1.08rem;
  font-weight: 300;
  color: #cfcfcf;
  max-width: 38em;
}
section p + p { margin-top: 1.1rem; }

/* Scroll-Erscheinen */
.zeigen {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s ease, transform .8s ease;
}
.zeigen.sichtbar {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Hinweis / Merksatz ---------- */
.hinweis {
  margin-top: 1.6rem;
  border: 1px solid var(--linie);
  border-left: 2px solid var(--rot);
  background: rgba(255,255,255,.02);
  padding: 1.4rem 1.6rem;
  font-family: var(--mono);
  font-size: .92rem;
  line-height: 1.8;
  color: var(--gedimmt);
}
.hinweis b { color: var(--text); font-weight: 500; }

/* ---------- Bildplatzhalter ----------
   Solange kein Bild in /bilder/ liegt, zeigt der Rahmen an,
   welche Datei mit welchen Maßen dort hingehört.
   Sobald die Datei existiert, verschwindet der Rahmen von selbst. */
.bild {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--linie);
}
.bild::before {
  content: attr(data-spec);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  font-family: var(--mono);
  font-size: .72rem;
  line-height: 1.7;
  letter-spacing: .06em;
  color: var(--leise);
  white-space: pre-line;
  background-image: repeating-linear-gradient(
    45deg, rgba(255,255,255,.02) 0 10px, transparent 10px 20px);
  pointer-events: none;
}
.bild.geladen::before { display: none; }
.bild img { width: 100%; height: 100%; object-fit: cover; }
.bild img:not(.geladen) { opacity: 0; }
.bild img.geladen { opacity: 1; transition: opacity .5s ease; }

/* Breitbild zwischen den Abschnitten */
.breitbild {
  margin: 0 auto;
  max-width: 62em;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.breitbild .bild { aspect-ratio: 1920 / 900; }

/* ---------- Bausteine ---------- */
.bausteine {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--linie);
  border: 1px solid var(--linie);
}
.baustein {
  background: var(--grund);
  padding: 1.5rem 1.5rem 1.7rem;
  transition: background .3s ease;
}
.baustein:hover { background: rgba(255,255,255,.025); }
.baustein .bild {
  aspect-ratio: 1 / 1;
  margin-bottom: 1.2rem;
  border: none;
  background: rgba(255,255,255,.03);
}
.baustein .kennung {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .2em;
  color: var(--leise);
  margin-bottom: .4rem;
}
.baustein dt {
  font-family: var(--mono);
  font-size: .88rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rot);
  margin-bottom: .6rem;
}
.baustein dd {
  font-size: .97rem;
  font-weight: 300;
  line-height: 1.7;
  color: #cfcfcf;
}
.baustein dd b { color: var(--text); font-weight: 500; }

.schluss {
  margin-top: 2rem;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  font-weight: 200;
  line-height: 1.5;
  color: var(--text);
  max-width: 34em;
}

/* ---------- Unterseiten ---------- */
.seite {
  max-width: 62em;
  margin: 0 auto;
  padding: calc(4.5rem + clamp(3rem, 8vw, 6rem)) clamp(1.25rem, 4vw, 3rem) 6rem;
}
.seite h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 100;
  letter-spacing: .03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 2.2rem;
  max-width: 16em;
}
.seite p {
  font-size: 1.08rem;
  font-weight: 300;
  color: #cfcfcf;
  max-width: 38em;
}
.seite p + p { margin-top: 1.1rem; }
.seite .vorspann {
  font-size: clamp(1.2rem, 2.8vw, 1.5rem);
  font-weight: 200;
  line-height: 1.5;
  color: var(--text);
  max-width: 28em;
  margin-bottom: 2rem;
}

/* Tabellen (Anforderungen, Ports) */
.tabelle { overflow-x: auto; margin-top: 1.6rem; }
.tabelle table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  min-width: 30em;
}
.tabelle th, .tabelle td {
  text-align: left;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--linie);
  vertical-align: top;
}
.tabelle th {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--leise);
  font-weight: 400;
  border-bottom-color: rgba(255,255,255,.16);
}
.tabelle td { color: #cfcfcf; font-weight: 300; }
.tabelle td:first-child { color: var(--text); }
.tabelle tr:last-child td { border-bottom: none; }
.tabelle .mono { font-family: var(--mono); font-size: .88rem; }
.tabelle .betont { color: var(--rot); }

/* Zwischenüberschrift innerhalb einer Unterseite */
.seite h2 {
  margin-top: clamp(2.8rem, 6vw, 4rem);
  margin-bottom: 1rem;
  font-size: clamp(1.25rem, 2.8vw, 1.6rem);
}
.seite h3 {
  margin-top: 2rem;
  margin-bottom: .6rem;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--text);
}
.seite ul {
  margin-top: 1rem;
  padding-left: 1.1rem;
  max-width: 38em;
}
.seite li {
  font-size: 1.05rem;
  font-weight: 300;
  color: #cfcfcf;
  margin-bottom: .55rem;
}
.seite li::marker { color: var(--rot); }
.seite li b { color: var(--text); font-weight: 500; }

/* Schrittfolge */
.schritte { margin-top: 1.8rem; counter-reset: schritt; }
.schritt {
  position: relative;
  padding: 0 0 1.6rem 3.2rem;
  border-left: 1px solid var(--linie);
  margin-left: .6rem;
}
.schritt:last-child { border-left-color: transparent; padding-bottom: 0; }
.schritt::before {
  counter-increment: schritt;
  content: counter(schritt, decimal-leading-zero);
  position: absolute;
  left: -1.1em;
  top: 0;
  width: 2.2em;
  text-align: center;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .1em;
  color: var(--rot);
  background: var(--grund);
  padding: .1rem 0;
}
.schritt h3 { margin-top: 0; }
.schritt p { font-size: 1rem; }

/* Blättern zwischen den Unterseiten */
.weiter {
  margin-top: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--linie);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--mono);
  font-size: .85rem;
  letter-spacing: .06em;
}
.weiter a {
  color: var(--gedimmt);
  text-decoration: none;
  transition: color .25s ease;
}
.weiter a:hover { color: var(--rot); }
.weiter .vor a { color: var(--rot); }
.weiter .vor a:hover { color: #fff; }

/* ---------- Über mich ---------- */
.ueber {
  max-width: 62em;
  margin: 0 auto;
  padding: calc(4.5rem + clamp(3rem, 8vw, 6rem)) clamp(1.25rem, 4vw, 3rem) 6rem;
  display: grid;
  grid-template-columns: minmax(0, 20em) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 720px) {
  .ueber { grid-template-columns: 1fr; }
  .ueber .portrait { max-width: 20em; }
}
.portrait .bild { aspect-ratio: 800 / 1000; }
.ueber h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 100;
  letter-spacing: .03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: .6rem;
}
.ueber .rolle {
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rot);
  margin-bottom: 2rem;
}
.ueber h2 {
  margin-top: 2.6rem;
  margin-bottom: .8rem;
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
}
.ueber p {
  font-size: 1.08rem;
  font-weight: 300;
  color: #cfcfcf;
  max-width: 38em;
}
.ueber p + p { margin-top: 1.1rem; }

.kontakt {
  margin-top: 2.6rem;
  border-top: 1px solid var(--linie);
  padding-top: 1.6rem;
  display: grid;
  grid-template-columns: 7em 1fr;
  gap: .5rem 1rem;
  font-family: var(--mono);
  font-size: .9rem;
}
.kontakt dt { color: var(--leise); letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; padding-top: .15em; }
.kontakt dd { color: var(--text); }
.kontakt a { color: var(--rot); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .25s ease; }
.kontakt a:hover { border-bottom-color: var(--rot); }

/* ---------- Fuss ---------- */
footer {
  border-top: 1px solid var(--linie);
  padding: 2.2rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .82rem;
  color: var(--leise);
  letter-spacing: .06em;
}
footer a { color: var(--leise); text-decoration: none; transition: color .25s ease; }
footer a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .status, .marke, .claim, .unterclaim, .zeigen { opacity: 1; transform: none; }
}
