/* ==========================================================
   Redline-Design: Leiterbahnen, dünne Linien, Schrägstriche, Glas
   Große Texte in Kleinbuchstaben, kleine Labels in Versalien
   ========================================================== */

@font-face { font-family: "Chakra Petch"; src: url("fonts/chakra-petch-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("fonts/chakra-petch-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("fonts/chakra-petch-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("fonts/chakra-petch-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #08080a;
  --red: #d7192a;
  --red-hi: #ff2b3d;
  --red-dark: #5a0810;
  --red-glow: rgba(215, 25, 42, .45);
  /* Flächen: höchstens normales Rot. Helles Rot nur beim Klicken (--grad-aktiv) und für Linien */
  --grad: linear-gradient(110deg, rgba(215, 25, 42, 0) 0%, rgba(215, 25, 42, .15) 30%, rgba(215, 25, 42, .55) 75%, rgba(215, 25, 42, .85));
  --grad-aktiv: linear-gradient(110deg, rgba(215, 25, 42, .2) 0%, rgba(215, 25, 42, .6) 40%, var(--red-hi));
  --grad-line: linear-gradient(90deg, var(--red-hi), rgba(215, 25, 42, .45) 22%, rgba(215, 25, 42, 0) 65%);
  --white: #f3f3f4;
  --muted: #9b9da4;
  --dim: #5d5f66;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --glass: rgba(14, 14, 17, .55);
  --glass-hi: rgba(255, 255, 255, .05);
  --hatch: repeating-linear-gradient(-60deg, transparent 0 9px, rgba(255, 255, 255, .05) 9px 10px);
  --hatch-b: repeating-linear-gradient(60deg, transparent 0 9px, rgba(255, 255, 255, .045) 9px 10px);
  --cut: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Fadenkreuz mit Kreis, über Klickbarem rot */
@media (pointer: fine) {
  html, body { cursor: url("cursor.svg") 16 16, crosshair; }
  a, button, select, .btn, .chip { cursor: url("cursor-aktiv.svg") 16 16, pointer; }
}
::selection { background: var(--red); color: #fff; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 1px solid var(--red-hi); outline-offset: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.05; margin: 0 0 .5em; text-transform: lowercase; }
.muted { color: var(--muted); margin: 0; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* Kleine Labels immer in Versalien */
.label, .idx, .card-kat, .stack-kat, .tags li, .tag, .footer, .empty {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em;
}

/* ---------- Hintergrund ---------- */
.carbon {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 75% 0%, rgba(215, 25, 42, .09), transparent 60%),
    radial-gradient(ellipse at center, #0d0d10 0%, var(--bg) 75%);
}
.circuit {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; opacity: .8;
  -webkit-mask-image: radial-gradient(ellipse 120% 90% at 60% 40%, #000 30%, rgba(0, 0, 0, .35) 100%);
  mask-image: radial-gradient(ellipse 120% 90% at 60% 40%, #000 30%, rgba(0, 0, 0, .35) 100%);
}

/* ---------- Schriftzug kcNck ---------- */
.name { white-space: nowrap; text-transform: none; }
.name .mir { display: inline-block; transform: scaleX(-1); }
/* Logo-N: zwei Linienzüge mit langen, parallelen Diagonalen (Einheitsmaß: Stamm 100 hoch, 94 breit).
   1.5em hoch, Stamm damit so hoch wie das k; die negativen Ränder (0.4em ≈ Überstand unten) setzen den Stammfuß genau auf die Grundlinie */
.name .n {
  display: inline-block; height: 1.5em; width: auto; vertical-align: baseline; margin: -.4em -.02em; overflow: visible;
  fill: none; stroke: var(--red-hi); stroke-width: 1.3; stroke-linejoin: miter; stroke-linecap: square;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 3px rgba(255, 43, 61, .55));
  animation: dreh 7s var(--ease) infinite;
}
.name .n path { vector-effect: non-scaling-stroke; }
/* im Footer feiner */
.footer .name .n { stroke-width: .7; filter: none; }

/* Großer Schriftzug als SVG: N dreht sich, die übrigen Buchstaben tragen eine laufende rote Kontur */
.wordmark { display: block; height: clamp(4.6rem, 18vw, 10.5rem); width: auto; max-width: 100%; overflow: visible; }
.wordmark text { font-family: var(--display); font-weight: 600; text-transform: none; }
/* c und k ohne Füllung: weiße Kontur, darauf genau eine rote Linie, die um jeden Buchstaben läuft */
.wm-kontur { fill: none; stroke: var(--white); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: miter; }
.wm-schlange {
  fill: none; stroke: var(--red-hi); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 110 900; animation: schlange 4.5s linear infinite;
  filter: drop-shadow(0 0 3px rgba(255, 43, 61, .8));
}
/* Logo-N: nur Linien in Rot, zeichnet sich beim Laden gleichzeitig von links unten und rechts oben.
   Linienbreite bewusst im Einheitsmaß (kein non-scaling-stroke): so bleiben die Spitzen auch beim Drehen spitz. */
.wm-n {
  fill: none; stroke: var(--red-hi); stroke-width: 5.5;
  stroke-linejoin: miter; stroke-miterlimit: 10; stroke-linecap: square;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: zeichnen 1.4s var(--ease) .3s forwards;
}
@keyframes zeichnen { to { stroke-dashoffset: 0; } }
/* Glow kommt aus dem SVG-Filter #n-glow (main.js) */
.wm-dreh { transform-box: fill-box; transform-origin: center; animation: dreh 7s var(--ease) infinite; }

/* ---------- Navigation (Glas) ---------- */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 20; }
.nav-inner {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 58px; padding: 0 10px 0 16px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 10px 40px rgba(0, 0, 0, .5);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.nav-progress {
  position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: linear-gradient(90deg, var(--red-dark), var(--red-hi));
  transform-origin: left; transform: scaleX(var(--p, 0));
  box-shadow: 0 0 10px var(--red-glow);
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark { width: 32px; height: 32px; flex: none; }
/* Startseite: Logo erst zeigen, wenn der große Schriftzug weg ist */
.logo-spaet .logo { opacity: 0; visibility: hidden; transform: translateX(-10px); transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s .5s; }
.logo-spaet.zeige-logo .logo { opacity: 1; visibility: visible; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s; }
.logo-text { font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: .04em; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  position: relative; text-decoration: none; color: var(--muted);
  font-family: var(--display); font-weight: 500; text-transform: lowercase; letter-spacing: .06em; font-size: .95rem;
  padding: 10px 14px; transition: color .25s var(--ease);
}
.nav-links a::before, .nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; height: 1px;
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav-links a::before { bottom: 7px; background: var(--grad-line); }
.nav-links a::after { bottom: 4px; background: rgba(255, 255, 255, .5); transition-delay: .06s; right: 30px; }
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::before, .nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links .nav-private {
  margin-left: 8px; color: var(--white); border: 1px solid var(--line-strong);
  display: inline-flex; align-items: center; gap: 8px; isolation: isolate; overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: border-color .3s var(--ease);
}
.nav-links .nav-private::after { display: none; }
.nav-links .nav-private::before {
  inset: 0; left: 0; right: 0; height: auto; bottom: 0; z-index: -1; background: var(--grad);
}
.nav-links .nav-private:hover { border-color: var(--red); }
.nav-private svg { width: 12px; height: 12px; }

/* ---------- Buttons ---------- */
.btn {
  --c: 10px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px 26px; border: 0;
  font-family: var(--display); font-weight: 500; font-size: 1.02rem; letter-spacing: .06em; text-transform: lowercase;
  text-decoration: none; color: #fff;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease);
}
.btn .arrow { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn:active { transform: scale(.97); }
.btn-primary:active, .chip:active, .nav-links .nav-private:active::before { background: var(--hatch), var(--grad-aktiv) !important; }
.btn-ghost:active::before { background: var(--hatch-b), var(--grad-aktiv); }

/* Primär: Verlauf mit Schrägstrichen und Licht-Sweep */
.btn-primary {
  background: var(--hatch), var(--grad), var(--glass);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 43, 61, .35);
}
.btn-primary::after {
  content: ""; position: absolute; inset: -20% auto -20% -60%; width: 40%; z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .4), transparent);
  transform: skewX(-25deg); transition: left .7s var(--ease);
}
.btn-primary:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), 0 10px 40px var(--red-glow); }
.btn-primary:hover::after { left: 130%; }

/* Sekundär: Glas mit Doppelrahmen, Verlauf füllt sich von links */
.btn-ghost {
  background: var(--glass);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 0 0 4px transparent, inset 0 0 0 5px var(--line);
}
.btn-ghost::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hatch-b), var(--grad);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.btn-ghost:hover::before { transform: scaleX(1); transform-origin: left; }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--red-hi); }
.btn-sm { padding: 9px 16px; font-size: .9rem; gap: 8px; --c: 7px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 90px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
.tag { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; font-size: .74rem; color: var(--muted); }
.tag .dot { width: 6px; height: 6px; background: var(--red); box-shadow: 0 0 10px var(--red); animation: pulse 2.4s ease-in-out infinite; }
.tag .cursor { width: 7px; height: 1em; background: var(--red); animation: blink 1.1s steps(1) infinite; }
.hero h1 { font-size: clamp(3.6rem, 12vw, 8.6rem); font-weight: 600; letter-spacing: .01em; line-height: .9; margin-bottom: 18px; }
.hero h1 .row { display: block; overflow: hidden; padding-bottom: .06em; }
/* Schriftzug-Zeile offen lassen, damit die langen Diagonalen des N nicht abgeschnitten werden */
.hero h1 .row-logo { overflow: visible; }
.hero h1 .row > span { display: inline-block; }
.dline { display: block; width: min(420px, 80%); height: 5px; margin: 0 0 30px; position: relative; }
.dline::before, .dline::after { content: ""; position: absolute; left: 0; height: 1px; transform-origin: left; animation: grow .9s var(--ease) forwards; transform: scaleX(0); }
.dline::before { top: 0; width: 100%; background: var(--grad-line); box-shadow: 0 0 8px var(--red-glow); animation-delay: .55s; }
.dline::after { bottom: 0; width: 72%; background: linear-gradient(90deg, rgba(255, 255, 255, .6), transparent); animation-delay: .67s; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.2rem); max-width: 50ch; margin: 0 0 36px; }
.lead strong { color: var(--white); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.emblem { width: 100%; max-width: 470px; justify-self: end; overflow: visible; }
.emblem .draw { stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); animation: draw 1.4s var(--ease) forwards; animation-delay: var(--d, 0s); }
.emblem .fade { opacity: 0; animation: fade 1.2s var(--ease) forwards; animation-delay: var(--d, 0s); }
.emblem .spin { transform-origin: 240px 240px; animation: spin 50s linear infinite; }
.emblem .spin-r { transform-origin: 240px 240px; animation: spin 80s linear infinite reverse; }

/* ---------- Seitliche Scroll-Linie ---------- */
.scrollline { position: fixed; left: 14px; top: 0; width: 70px; height: 100vh; z-index: 15; pointer-events: none; overflow: visible; }
.scrollline .track { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 1; }
.scrollline .lauf { fill: none; stroke: url(#sl-grad); stroke-width: 1.2; filter: drop-shadow(0 0 4px rgba(255, 43, 61, .6)); }
.scrollline .lauf2 { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1; }
.scrollline .kopf { fill: #fff; filter: drop-shadow(0 0 6px var(--red-hi)); }
.scrollline .mark line { stroke: rgba(255, 255, 255, .25); stroke-width: 1; transition: stroke .3s; }
.scrollline .mark text { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; fill: var(--dim); transition: fill .3s; }
.scrollline .mark.an line { stroke: var(--red-hi); }
.scrollline .mark.an text { fill: var(--white); }

/* ---------- Sektionen ---------- */
.section { position: relative; isolation: isolate; padding: clamp(80px, 11vw, 140px) 0; }
/* Trennstrich zwischen Bereichen: rechtsbündig, Doppellinie läuft nach links ins Transparente aus */
.section:not(.hero):not(.top)::after {
  --breite: min(1180px, 100% - 32px);
  content: ""; position: absolute; top: 0; right: calc((100% - var(--breite)) / 2);
  width: calc(var(--breite) * .62); height: 5px; pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(215, 25, 42, .45) 55%, var(--red-hi)) top / 100% 1px no-repeat,
    linear-gradient(90deg, transparent 20%, rgba(255, 255, 255, .5)) bottom right / 72% 1px no-repeat;
  filter: drop-shadow(0 0 6px var(--red-glow));
}
.section.top { padding-top: clamp(130px, 14vw, 170px); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 44px; }
.section-title { display: flex; flex-direction: column; gap: 10px; }
.idx { font-size: .72rem; color: var(--red-hi); display: inline-flex; align-items: center; gap: 10px; }
.idx::before { content: "/"; color: var(--red); opacity: .8; }
.section-title h2 { margin: 0; font-size: clamp(2.6rem, 6vw, 4rem); }
.slash { display: block; height: 5px; width: 160px; position: relative; }
.slash::before, .slash::after { content: ""; position: absolute; left: 0; height: 1px; transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.slash::before { top: 0; width: 100%; background: var(--grad-line); box-shadow: 0 0 8px var(--red-glow); }
.slash::after { bottom: 0; width: 65%; background: linear-gradient(90deg, rgba(255, 255, 255, .55), transparent); transition-delay: .12s; }
.in .slash::before, .in .slash::after { transform: scaleX(1); }
.section-head .muted { max-width: 38ch; }

/* Querlinien hinter den Projekten */
.querlinien::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 47px, rgba(255, 255, 255, .045) 47px 48px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.querlinien .streifen { position: absolute; left: 0; right: 0; height: 1px; z-index: -1; overflow: hidden; pointer-events: none; }
.querlinien .streifen::before {
  content: ""; position: absolute; top: 0; left: -30%; width: 30%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), var(--red-hi), transparent);
  animation: zug 9s linear infinite; animation-delay: var(--d, 0s);
}

.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  position: relative; isolation: isolate; overflow: hidden;
  font-family: var(--display); font-weight: 500; font-size: .92rem; text-transform: lowercase; letter-spacing: .05em;
  color: var(--muted); background: var(--glass); border: 1px solid var(--line); padding: 7px 16px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
  transition: color .25s, border-color .25s;
}
.chip:hover { color: var(--white); border-color: var(--line-strong); }
.chip.active { color: #fff; border-color: rgba(255, 43, 61, .5); background: var(--hatch), var(--grad), var(--glass); }

/* ---------- Karten (Glas) ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 22px; }
.card {
  --rx: 0deg; --ry: 0deg;
  position: relative; display: flex; flex-direction: column; text-decoration: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012) 40%), var(--glass);
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 20px 50px rgba(0, 0, 0, .35);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease), border-color .35s var(--ease);
}
.card:hover { border-color: rgba(255, 43, 61, .45); }
.card.tilting { transition: transform .08s linear, border-color .35s var(--ease); }
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s; z-index: 1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .07), transparent 45%);
}
.card:hover::before { opacity: 1; }
/* Doppellinie unten */
.card::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; z-index: 1;
  background:
    linear-gradient(90deg, var(--red-hi), var(--red) 40%, transparent) top / 100% 1px no-repeat,
    linear-gradient(90deg, rgba(255, 255, 255, .5), transparent 60%) bottom / 100% 1px no-repeat;
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.card:hover::after { transform: scaleX(1); }
.corner { position: absolute; width: 12px; height: 12px; border-color: var(--line-strong); border-style: solid; transition: all .4s var(--ease); pointer-events: none; z-index: 2; }
.corner.tl { top: 9px; left: 9px; border-width: 1px 0 0 1px; }
.corner.br { bottom: 9px; right: 9px; border-width: 0 1px 1px 0; }
.card:hover .corner { width: 24px; height: 24px; border-color: var(--red-hi); }

.card-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0e0e11; border-bottom: 1px solid var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-img img { transform: scale(1.05); }
.card-img-empty { display: grid; place-items: center; background: var(--hatch), var(--hatch-b), #0d0d10; }
.card-img-empty::after {
  content: ""; position: absolute; left: 14%; right: 14%; top: 50%; height: 4px; transform: translateY(26px);
  border-top: 1px solid rgba(255, 43, 61, .6); border-bottom: 1px solid rgba(255, 255, 255, .15);
}
.card-img-empty span { font-family: var(--display); font-size: 3.2rem; font-weight: 500; color: rgba(255, 255, 255, .16); text-transform: lowercase; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 26px; flex: 1; }
.card-body h3 { font-size: 1.5rem; margin: 0; letter-spacing: .02em; }
.card-body p { margin: 0; color: var(--muted); font-size: .95rem; }
.card-kat { color: var(--red-hi) !important; font-size: .68rem !important; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 8px 0 0; }
.tags li { font-size: .64rem; padding: 3px 9px; border: 1px solid var(--line); color: var(--muted); }
.card-link {
  margin-top: auto; padding-top: 16px; color: var(--white); text-decoration: none;
  font-family: var(--display); font-weight: 500; font-size: 1rem; text-transform: lowercase; letter-spacing: .06em;
  display: inline-flex; align-items: center; gap: 10px;
}
.card-link .arrow { color: var(--red-hi); transition: transform .35s var(--ease); }
.card:hover .card-link .arrow { transform: translateX(6px); }

.empty {
  grid-column: 1 / -1; position: relative; padding: 48px 24px; text-align: center; font-size: .78rem; color: var(--muted);
  background: var(--hatch), var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); outline: 1px solid rgba(255, 255, 255, .035); outline-offset: 4px;
}
.empty p { margin: 0; }
.empty p::before { content: "/ "; color: var(--red-hi); }

/* ---------- Stack ---------- */
.stack { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.stack-item {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px 22px 26px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01) 45%), var(--glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: border-color .35s var(--ease);
}
.stack-item::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s var(--ease);
  background: var(--hatch-b), linear-gradient(110deg, transparent 40%, rgba(215, 25, 42, .14));
}
.stack-item::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%;
  background:
    linear-gradient(90deg, var(--red-hi), var(--red) 40%, transparent) top / 100% 1px no-repeat,
    linear-gradient(90deg, rgba(255, 255, 255, .5), transparent 60%) bottom / 100% 1px no-repeat;
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.stack-item:hover { border-color: rgba(255, 43, 61, .45); }
.stack-item:hover::before { opacity: 1; }
.stack-item:hover::after { transform: scaleX(1); }
.stack-item svg { width: 44px; height: 44px; margin-bottom: 10px; fill: none; stroke: rgba(255, 255, 255, .75); stroke-width: 1; stroke-linejoin: miter; }
.stack-item svg .akzent { stroke: var(--red); transition: stroke .3s; }
.stack-item:hover svg .akzent { stroke: var(--red-hi); filter: drop-shadow(0 0 3px rgba(255, 43, 61, .7)); }
.stack-kat { font-size: .64rem; color: var(--red-hi); }
.stack-item h3 { font-size: 1.45rem; margin: 0; letter-spacing: .02em; }
.stack-item p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }

/* ---------- Kontakt (Glas statt roter Fläche) ---------- */
.contact {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  padding: clamp(32px, 6vw, 64px);
  background:
    radial-gradient(ellipse 50% 100% at 100% 100%, rgba(215, 25, 42, .22), transparent 55%),
    var(--hatch-b), var(--glass);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}
.contact::before, .contact::after { content: ""; position: absolute; left: 0; height: 1px; }
.contact::before { top: 0; width: 60%; background: var(--grad-line); box-shadow: 0 0 10px var(--red-glow); }
.contact::after { top: 4px; width: 40%; background: linear-gradient(90deg, rgba(255, 255, 255, .45), transparent); }
.contact h2 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin: .2em 0 .25em; }
.contact p { color: var(--muted); margin: 0; max-width: 42ch; }
.feedback-form { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.feedback-feld { display: flex; flex-direction: column; gap: 8px; }
.feedback-feld select {
  font-family: var(--display); font-weight: 500; font-size: .95rem; text-transform: lowercase; letter-spacing: .04em;
  color: var(--white); background: var(--glass); border: 1px solid var(--line-strong); border-radius: 0;
  padding: 9px 38px 9px 14px; min-width: 240px; cursor: inherit;
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--red-hi) 50%), linear-gradient(135deg, var(--red-hi) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat;
}
.feedback-feld select:hover { border-color: var(--red-hi); }
.feedback-feld option { background: #0e0e11; color: var(--white); }

/* ---------- Footer ---------- */
.footer { position: relative; padding: 30px 0; color: var(--dim); font-size: .68rem; }
.footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  border-top: 1px solid var(--line); border-bottom: 1px solid rgba(255, 255, 255, .035);
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer nav { display: flex; gap: 22px; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--red-hi); }
.footer .name { text-transform: none; letter-spacing: .06em; }

/* ---------- Unterseiten ---------- */
.page { padding: 140px 0 100px; }
.page .wrap { max-width: 780px; }
.page h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.page h2 { font-size: 1.3rem; margin-top: 2.2em; }
.page h2::before { content: "/ "; color: var(--red); font-family: var(--mono); font-size: .8em; }
.page h3 { font-size: 1.1rem; margin: 1.9em 0 .5em; }
.page h4 { font-size: 1rem; margin: 1.4em 0 .4em; }
.page p, .page li { color: var(--muted); }
.hinweis {
  padding: 14px 18px; border-left: 1px solid var(--red-hi); background: rgba(215, 25, 42, .08);
  color: #ffc9ce !important; font-size: .88rem; font-family: var(--mono);
}

/* ---------- Tipp-Effekt für Überschriften ---------- */
.tz { visibility: hidden; }
.tz.an { visibility: visible; }
.caret {
  display: inline-block; width: .07em; height: .82em; margin-left: .05em; vertical-align: -.04em;
  background: var(--red); box-shadow: 0 0 8px var(--red-glow); animation: blink .9s steps(1) infinite;
}
.caret.weg { opacity: 0; transition: opacity .4s; animation: none; }

/* ---------- Animationen ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.load { opacity: 0; transform: translateY(30px); animation: up 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
.hero h1 .row > span { transform: translateY(105%); animation: rise 1s var(--ease) forwards; animation-delay: var(--d, 0s); }

@keyframes up { to { opacity: 1; transform: none; } }
@keyframes rise { to { transform: none; } }
@keyframes grow { to { transform: scaleX(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes zug { to { left: 110%; } }
@keyframes schlange { to { stroke-dashoffset: -1010; } }
@keyframes dreh { 0%, 30% { transform: scaleX(1); } 50%, 80% { transform: scaleX(-1); } 100% { transform: scaleX(1); } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1320px) { .scrollline { display: none; } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .emblem { position: absolute; right: -130px; top: 80px; width: 380px; opacity: .3; z-index: -1; }
}
@media (max-width: 620px) {
  .logo-text { display: none; }
  .nav-inner { padding-left: 12px; }
  .nav-links a { padding: 10px 9px; font-size: .9rem; }
  .nav-links a::before, .nav-links a::after { left: 9px; right: 9px; }
  .nav-links .nav-private { margin-left: 4px; padding: 10px 11px; font-size: 0; gap: 0; }
  .nav-private svg { width: 14px; height: 14px; }
}
@media (hover: none) { .card { transform: none; } }
/* Bewusst entschieden: die Animationen sind Teil des Designs und laufen immer.
   Bei "Animationen reduzieren" entfallen nur weiches Scrollen und Karten-Kippen (main.js). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Schriftzug ohne Maske: einblenden statt von unten hochschieben */
.hero h1 .row-logo > span { opacity: 0; transform: translateY(30px); animation: up 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
