/* Anteater, gemeinsames Stylesheet.
   Farben und Abstände stehen als Variablen in :root.
   Für eine spätere Firmenseite reicht es, diesen Block zu ändern. */

@font-face { font-family: "Titillium"; src: url("../fonts/titillium-web-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Titillium"; src: url("../fonts/titillium-web-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Titillium"; src: url("../fonts/titillium-web-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Titillium"; src: url("../fonts/titillium-web-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "TechMono"; src: url("../fonts/share-tech-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* nur für Screenreader sichtbar */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

:root {
  --bg:        #030d0f;
  --bg-2:      #061a1c;
  --bg-3:      #0a2629;
  --line:      rgba(95, 242, 224, .16);
  --line-2:    rgba(95, 242, 224, .38);
  --cyan:      #5ff2e0;
  --teal:      #1fb5a8;
  --copper:    #ff8a3d;
  --red:       #e8323c;
  --text:      #d6efec;
  --muted:     #6e9894;
  --dim:       #629691;   /* hell genug für 4,5:1 Kontrast auch auf den Tafeln */

  --f-sans: "Titillium", "Segoe UI", system-ui, sans-serif;
  --f-mono: "TechMono", ui-monospace, "Consolas", monospace;

  --gutter: clamp(16px, 3vw, 40px);
  --maxw: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--cyan); color: var(--bg); }

.mono { font-family: var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.accent { color: var(--cyan); }
.copper { color: var(--copper); }

/* ---------- Hintergrund: Nebel + Raster + Rauschen ---------- */
.bg-fx {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 55% 45%, rgba(31, 181, 168, .16), transparent 70%),
    radial-gradient(ellipse 40% 35% at 15% 85%, rgba(255, 138, 61, .06), transparent 70%),
    radial-gradient(ellipse 50% 40% at 90% 10%, rgba(95, 242, 224, .07), transparent 70%),
    var(--bg);
}
.bg-fx::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: .35;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
}
.bg-fx::after {
  content: ""; position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.5'/></svg>");
  opacity: .06;
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-1%)} }

/* ---------- HUD-Rahmen ---------- */
.frame {
  position: fixed; inset: 14px; z-index: 50; pointer-events: none;
  border: 1px solid var(--line);
}
.frame i { position: absolute; width: 14px; height: 14px; border-color: var(--cyan); border-style: solid; border-width: 0; }
.frame i:nth-child(1) { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.frame i:nth-child(2) { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.frame i:nth-child(3) { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.frame i:nth-child(4) { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

/* Klammer-Ecken für beliebige Boxen */
.brackets { position: relative; }
.brackets::before, .brackets::after {
  content: ""; position: absolute; width: 10px; height: 10px;
  border: 0 solid var(--cyan); transition: all .4s var(--ease);
}
.brackets::before { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.brackets::after  { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }
.brackets:hover::before, .brackets:hover::after { width: 22px; height: 22px; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: fixed; top: 14px; left: 14px; right: 14px; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  transition: background .4s, backdrop-filter .4s;
}
.site-header.scrolled { background: rgba(3, 13, 15, .72); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.logo img { height: 36px; width: auto; opacity: .95; }
.nav { display: flex; gap: clamp(16px, 3vw, 44px); }
.nav a {
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); position: relative; padding: 6px 0; min-height: 24px; display: inline-flex; align-items: center; transition: color .3s;
}
.nav a span { color: var(--dim); margin-right: 8px; font-size: 11px; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--cyan); transition: width .4s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: 0; }
.btn-hud {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--cyan); padding: 12px 20px; border: 1px solid var(--line-2);
  background: rgba(95, 242, 224, .03); transition: background .3s, color .3s, border-color .3s;
  cursor: pointer;
}
.btn-hud:hover { background: var(--cyan); color: var(--bg); border-color: var(--cyan); }
.menu-btn { display: none; width: 46px; height: 44px; border: 1px solid var(--line-2); border-left: 0; background: transparent; cursor: pointer; }
.menu-btn span { display: block; height: 1px; background: var(--cyan); margin: 5px 13px; }
.menu-btn span:nth-child(2) { margin-left: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center; gap: 24px;
  padding: 120px calc(var(--gutter) + 14px) 150px;
  overflow: hidden;
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-intro, .hero-panels, .hero-spacer { position: relative; z-index: 2; }

.hero-intro .kicker { font-family: var(--f-mono); font-size: 14px; letter-spacing: .22em; color: var(--text); }
.hero-intro .kicker::after { content: ""; display: block; width: 34px; height: 2px; background: var(--copper); margin-top: 16px; }
.hero-title {
  margin: 56px 0 28px; font-weight: 400;
  font-size: clamp(28px, 3.3vw, 52px); line-height: 1.35; letter-spacing: .32em; text-transform: uppercase;
}
.hero-title span { display: block; white-space: nowrap; }
.hero-title .accent { font-weight: 600; text-shadow: 0 0 24px rgba(95, 242, 224, .45); }
.hero-sub { max-width: 34ch; color: var(--muted); font-size: 17px; margin: 0; }
.hero-sub strong { color: var(--text); font-weight: 400; }

.hero-panels { display: grid; gap: 22px; justify-self: end; width: min(100%, 330px); }
.panel {
  display: block; padding: 22px 24px; border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(10, 38, 41, .65), rgba(3, 13, 15, .35));
  backdrop-filter: blur(6px);
  transition: border-color .4s, transform .4s var(--ease), background .4s;
}
.panel:hover { border-color: var(--line-2); transform: translateX(-6px); background: linear-gradient(135deg, rgba(20, 70, 72, .6), rgba(3, 13, 15, .4)); }
.panel .num { font-family: var(--f-mono); font-size: 12px; color: var(--copper); letter-spacing: .2em; }
.panel h2 { margin: 8px 0 6px; font-size: 22px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; }
.panel p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.panel .go { font-family: var(--f-mono); font-size: 13px; letter-spacing: .3em; color: var(--cyan); display: flex; align-items: center; gap: 10px; }
.panel .go::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, var(--cyan), transparent); transition: flex .4s; }

/* Seitliche HUD-Daten */
.hud-right {
  position: absolute; right: calc(var(--gutter) + 14px); top: 120px; z-index: 2;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--dim); text-align: right; text-transform: uppercase;
}
.hud-right b { color: var(--copper); font-weight: 400; }
.vlabel {
  position: absolute; left: 22px; z-index: 2; writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .3em; color: var(--dim); text-transform: uppercase;
}
.vlabel::before { content: attr(data-n); display: inline-block; transform: rotate(90deg); border: 1px solid var(--dim); padding: 2px 5px; margin-bottom: 10px; color: var(--muted); }

/* ---------- Zeitleiste ---------- */
.timeline {
  position: absolute; left: calc(var(--gutter) + 14px); right: calc(var(--gutter) + 14px); bottom: 40px; z-index: 3;
  height: 74px;
}
.timeline .axis { position: absolute; left: 0; right: 0; top: 30px; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 8%, var(--line-2) 92%, transparent); }
.timeline .ticks { position: absolute; left: 0; right: 0; top: 24px; height: 12px;
  background-image: linear-gradient(90deg, var(--line-2) 1px, transparent 1px); background-size: calc(100% / 50) 100%; opacity: .6;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.timeline .year { position: absolute; top: 44px; transform: translateX(-50%); font-family: var(--f-mono); font-size: 11px; color: var(--dim); letter-spacing: .1em; }
.timeline .ev {
  position: absolute; top: 24px; width: 13px; height: 13px; transform: translateX(-50%) rotate(45deg);
  border: 1px solid var(--cyan); background: var(--bg); cursor: pointer; transition: background .25s, box-shadow .25s;
}
/* unsichtbar vergrößerte Klickfläche, mindestens 24 px */
.timeline .ev::before { content: ""; position: absolute; inset: -6px; }
.timeline .ev.robo { border-color: var(--copper); }
.timeline .ev:hover, .timeline .ev.active { background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.timeline .ev.robo:hover, .timeline .ev.robo.active { background: var(--copper); box-shadow: 0 0 14px var(--copper); }
.timeline .readout {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; color: var(--text); text-transform: uppercase; white-space: nowrap;
}
.timeline .readout b { color: var(--copper); font-weight: 400; margin-right: 12px; }

/* ---------- Sektionen ---------- */
.section { position: relative; padding: clamp(80px, 12vw, 160px) calc(var(--gutter) + 14px); max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; }
.sec-head { display: flex; align-items: baseline; gap: 22px; margin-bottom: 56px; }
.sec-head .idx { font-family: var(--f-mono); color: var(--copper); font-size: 13px; letter-spacing: .2em; }
.sec-head h2 { margin: 0; font-weight: 400; font-size: clamp(26px, 3.4vw, 46px); letter-spacing: .24em; text-transform: uppercase; }
.sec-head .rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); align-self: center; }
.lead { max-width: 60ch; color: var(--muted); font-size: 19px; }

/* Zwei Welten */
.worlds { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.world {
  position: relative; display: block; border: 1px solid var(--line); overflow: hidden; min-height: 540px;
  background: var(--bg-2);
}
.world .mosaic { position: absolute; inset: 0; display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; }
.world .mosaic img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.55); transition: filter .8s var(--ease), transform 1.2s var(--ease); }
.world .mosaic img:first-child { grid-row: span 2; }
.world:hover .mosaic img { filter: grayscale(.2) contrast(1.05) brightness(.7); transform: scale(1.04); }
.world .tint { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3, 13, 15, .96) 18%, rgba(3, 13, 15, .2) 70%), linear-gradient(90deg, rgba(31, 181, 168, .22), transparent 60%); mix-blend-mode: normal; }
.world.robo .tint { background: linear-gradient(0deg, rgba(3, 13, 15, .96) 18%, rgba(3, 13, 15, .2) 70%), linear-gradient(90deg, rgba(255, 138, 61, .18), transparent 60%); }
.world .scan { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(95, 242, 224, .05) 0 1px, transparent 1px 3px); pointer-events: none; }
.world .body { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px; }
.world .tag { font-family: var(--f-mono); font-size: 12px; letter-spacing: .24em; color: var(--cyan); text-transform: uppercase; }
.world.robo .tag { color: var(--copper); }
.world h3 { margin: 10px 0 12px; font-size: clamp(30px, 3.4vw, 46px); font-weight: 600; letter-spacing: .22em; text-transform: uppercase; line-height: 1.1; }
.world p { margin: 0 0 24px; color: var(--muted); max-width: 44ch; }
.world .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border: 1px solid var(--line-2); color: var(--text); }

/* Case-Teaser */
.case { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.case-media { position: relative; border: 1px solid var(--line); padding: 10px; }
.case-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: saturate(.7) contrast(1.05); }
.case-media .marker { position: absolute; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--copper); text-transform: uppercase; }
.case-media .marker::before { content: ""; display: inline-block; width: 8px; height: 8px; border: 1px solid var(--copper); transform: rotate(45deg); margin-right: 8px; }
.case h3 { font-size: clamp(26px, 2.6vw, 38px); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 12px 0 18px; line-height: 1.2; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; margin: 28px 0 34px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.specs dt { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; color: var(--dim); text-transform: uppercase; padding-top: 2px; }
.specs dd { margin: 0; }

/* Zahlen */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.stat { padding: 34px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .n { font-size: clamp(40px, 4.6vw, 64px); font-weight: 300; color: var(--cyan); line-height: 1; letter-spacing: .04em; }
.stat .l { margin-top: 12px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }

/* Kontakt */
.contact { text-align: center; }
.contact h2 { font-size: clamp(34px, 5.4vw, 78px); font-weight: 300; letter-spacing: .22em; text-transform: uppercase; margin: 18px 0 30px; line-height: 1.15; }
.contact h2 .accent { font-weight: 600; }
.contact .btn-hud { font-size: 15px; padding: 18px 34px; }

/* Fußzeile */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px;
  padding: 34px calc(var(--gutter) + 14px) 44px; border-top: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; color: var(--dim); text-transform: uppercase;
}
.site-footer a:hover { color: var(--cyan); }
.site-footer nav { display: flex; gap: 26px; }

/* ---------- Einblend-Animationen ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.boot .hero-title span { opacity: 0; transform: translateX(-20px); animation: bootIn .9s var(--ease) forwards; }
.boot .hero-title span:nth-child(2) { animation-delay: .15s; }
.boot .hero-title span:nth-child(3) { animation-delay: .3s; }
@keyframes bootIn { to { opacity: 1; transform: none; } }
.typed::after { content: "_"; animation: blink 1s steps(1) infinite; color: var(--cyan); }
@keyframes blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsiv ---------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; padding-top: 140px; padding-bottom: 180px; align-content: center; }
  .hero-intro { order: 1; }
  .hero-panels { order: 2; justify-self: start; width: 100%; grid-template-columns: 1fr 1fr; }
  .hero-spacer { display: none; }
  .hud-right, .vlabel { display: none; }
  .case { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .frame { inset: 8px; }
  .site-header { top: 8px; left: 8px; right: 8px; }
  .nav { display: none; position: fixed; inset: 70px 8px auto 8px; flex-direction: column; gap: 0; background: rgba(3, 13, 15, .96); border: 1px solid var(--line); padding: 10px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .menu-btn { display: block; }
  .header-cta .btn-hud { display: none; }
  .menu-btn { border-left: 1px solid var(--line-2); }
  .hero-title { letter-spacing: .2em; margin-top: 36px; }
  .hero-panels { grid-template-columns: 1fr; }
  .worlds { grid-template-columns: 1fr; }
  .world { min-height: 460px; }
  .world .body { padding: 24px; }
  .timeline .year:nth-of-type(even) { display: none; }
  .timeline .readout { font-size: 10px; }
}

/* Hinweis / Status */
.notice {
  display: flex; gap: 22px; align-items: baseline; margin: -20px 0 44px; padding: 16px 22px;
  border: 1px solid rgba(255, 138, 61, .35); border-left: 3px solid var(--copper);
  background: rgba(255, 138, 61, .05);
}
.notice .mono { color: var(--copper); font-size: 12px; letter-spacing: .2em; flex: none; }
.notice p { margin: 0; color: var(--muted); }
.notice strong { color: var(--text); font-weight: 400; }
.chip-status { border-color: rgba(255, 138, 61, .6); color: var(--copper); }
@media (max-width: 760px) { .notice { flex-direction: column; gap: 6px; } }

/* Unterseiten: Seitenkopf */
.page-hero {
  position: relative; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto;
  padding: 170px calc(var(--gutter) + 14px) 40px;
}
.crumbs { font-size: 12px; letter-spacing: .2em; color: var(--dim); }
.crumbs a:hover { color: var(--cyan); }
.page-title {
  margin: 26px 0 22px; font-weight: 300; text-transform: uppercase;
  font-size: clamp(40px, 7vw, 104px); line-height: 1; letter-spacing: .16em;
}
.page-title .accent { font-weight: 600; text-shadow: 0 0 30px rgba(95, 242, 224, .35); }
.page-hud {
  display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0;
  margin-top: 44px; border: 1px solid var(--line); width: fit-content; max-width: 100%;
}
.page-hud > div { padding: 12px 22px; border-right: 1px solid var(--line); font-size: 11px; letter-spacing: .16em; }
.page-hud > div:last-child { border-right: 0; }
.page-hud span { display: block; color: var(--dim); }
.page-hud b { display: block; font-weight: 400; color: var(--cyan); font-size: 15px; margin-top: 2px; }

/* ---------- Filter ---------- */
.work-section { padding-top: 30px; }
.filters { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.filter {
  background: none; border: 0; cursor: pointer; color: var(--muted);
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  padding: 16px 22px; position: relative; transition: color .3s;
}
.filter sup { color: var(--dim); margin-left: 6px; font-size: 10px; }
.filter::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--cyan); transform: scaleX(0); transition: transform .4s var(--ease); }
.filter:hover { color: var(--text); }
.filter[aria-selected="true"] { color: var(--cyan); }
.filter[aria-selected="true"]::after { transform: scaleX(1); }
.filter[aria-selected="true"] sup { color: var(--copper); }

/* ---------- Kacheln ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.year-group { margin-bottom: 46px; }
.year-group[hidden] { display: none; }
.year-head { display: flex; align-items: center; gap: 20px; margin: 0 0 18px; font-size: inherit; font-weight: inherit; line-height: inherit; }
.year-head b { font-weight: 300; font-size: 30px; letter-spacing: .14em; color: var(--copper); }
.year-head .rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.tile {
  display: block; position: relative; border: 1px solid var(--line); background: var(--bg-2);
  aspect-ratio: 4 / 3.4; overflow: hidden; cursor: pointer;
}
.tile.feature { grid-column: span 2; aspect-ratio: 8.36 / 3.4; }
.tile.hide { display: none; }
.tile.pop { animation: tileIn .6s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes tileIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.tile-media { position: absolute; inset: 0; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.62) contrast(1.1); transition: filter .7s var(--ease), transform 1.1s var(--ease); }
.tile-media img.contain { object-fit: contain; padding: 18px 18px 110px; background: #0b1d1f; }
.tile:hover .tile-media img { filter: grayscale(0) brightness(.85) contrast(1.05); transform: scale(1.04); }
.tile-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3, 13, 15, .95) 8%, rgba(3, 13, 15, .15) 55%, rgba(3, 13, 15, .35)); }
.tile-scan { position: absolute; inset: 0; z-index: 1; background: repeating-linear-gradient(0deg, rgba(95, 242, 224, .045) 0 1px, transparent 1px 3px); pointer-events: none; }
.tile::before, .tile::after { z-index: 3; }
.tile-top { position: absolute; top: 14px; left: 16px; right: 16px; z-index: 2; display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.badge { color: var(--bg); background: var(--cyan); padding: 3px 8px; letter-spacing: .1em; }
.tile-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px; }
.tile-meta { font-size: 11px; letter-spacing: .16em; color: var(--copper); }
.tile h3 { margin: 6px 0 2px; font-size: clamp(19px, 1.6vw, 24px); font-weight: 600; letter-spacing: .06em; line-height: 1.2; }
.tile.feature h3 { font-size: clamp(24px, 2.4vw, 36px); letter-spacing: .1em; text-transform: uppercase; }
.tile-sub { color: var(--muted); font-size: 15px; }
.tile:hover { border-color: var(--line-2); }
.tile.text-only { background: linear-gradient(135deg, rgba(255, 138, 61, .08), transparent 60%), var(--bg-2); }
.tile-text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-size: 12px; letter-spacing: .2em; color: var(--dim); padding-bottom: 80px;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; }
.tile-text b { color: var(--copper); font-weight: 400; margin-top: 6px; }

/* ---------- Dossier (Projekt-Overlay) ---------- */
.dossier { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 28px; }
.dossier[hidden] { display: none; }
.d-backdrop { position: absolute; inset: 0; background: rgba(2, 8, 9, .86); backdrop-filter: blur(8px); opacity: 0; transition: opacity .3s; }
.d-panel {
  position: relative; width: min(1320px, 100%); max-height: calc(100vh - 56px); overflow: auto;
  background: linear-gradient(180deg, var(--bg-2), var(--bg)); border: 1px solid var(--line-2);
  box-shadow: 0 0 80px rgba(31, 181, 168, .12);
  opacity: 0; transform: translateY(20px) scale(.985); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.dossier.open .d-backdrop { opacity: 1; }
.dossier.open .d-panel { opacity: 1; transform: none; }
.d-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 10px 12px 10px 22px; font-size: 11px; letter-spacing: .16em; color: var(--muted); border-bottom: 1px solid var(--line); background: rgba(6, 26, 28, .96); }
.d-nav { display: flex; gap: 6px; flex: none; }
.d-btn { background: none; border: 1px solid var(--line); color: var(--text); font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; padding: 8px 14px; cursor: pointer; text-transform: uppercase; transition: all .25s; }
.d-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.d-btn[disabled] { opacity: .3; cursor: default; pointer-events: none; }
.d-close { color: var(--copper); }
.d-body { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); gap: 34px; padding: 28px; }
.d-stage { position: relative; background: #010607; border: 1px solid var(--line); aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; }
.d-stage img, .d-stage video { width: 100%; height: 100%; object-fit: contain; background: #010607; }
.d-cap { position: absolute; left: 0; bottom: 0; padding: 8px 14px; font-size: 11px; letter-spacing: .14em; color: var(--muted); background: linear-gradient(90deg, rgba(1, 6, 7, .9), transparent); pointer-events: none; }
.d-stage video + .d-cap { top: 0; bottom: auto; }
.d-empty { color: var(--dim); font-size: 12px; letter-spacing: .2em; }
.d-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.d-thumb { position: relative; flex: none; width: 104px; aspect-ratio: 4 / 3; padding: 0; border: 1px solid var(--line); background: #010607; cursor: pointer; opacity: .55; transition: opacity .25s, border-color .25s; }
.d-thumb img { width: 100%; height: 100%; object-fit: cover; }
.d-thumb span { position: absolute; left: 4px; bottom: 4px; font-family: var(--f-mono); font-size: 10px; color: var(--bg); background: var(--cyan); padding: 1px 5px; }
.d-thumb:hover, .d-thumb.active { opacity: 1; border-color: var(--cyan); }
.d-info h2 { margin: 10px 0 4px; font-size: clamp(26px, 2.6vw, 38px); font-weight: 600; letter-spacing: .06em; line-height: 1.15; }
.d-meta { font-size: 12px; letter-spacing: .18em; }
.d-sub { color: var(--cyan); font-family: var(--f-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.d-info p { color: var(--muted); font-size: 16.5px; margin: 22px 0 0; }
.d-info .specs { margin-top: 26px; }

@media (max-width: 1100px) {
  .work-grid { grid-template-columns: 1fr 1fr; }
  .d-body { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .page-hero { padding-top: 130px; }
  .page-hud { grid-template-columns: 1fr 1fr; width: 100%; }
  .page-hud > div:nth-child(2) { border-right: 0; }
  .page-hud > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .filters { flex-wrap: nowrap; overflow-x: auto; }
  .filter { flex: none; padding: 14px 14px; }
  .work-grid { grid-template-columns: 1fr; }
  .tile.feature { grid-column: auto; aspect-ratio: 4 / 3.4; }
  .dossier { padding: 0; }
  .d-panel { max-height: 100vh; height: 100%; }
  .d-body { padding: 16px; gap: 20px; }
  .d-btn[data-prev], .d-btn[data-next] { padding: 8px 10px; }
}

/* Robotics: Hologramm, Prozess-Schritte, Konstruktion, Roadmap */
.page-robotics .page-title .accent { text-shadow: 0 0 30px rgba(95, 242, 224, .35); }
.holo-section { padding-top: 20px; padding-bottom: 60px; }
.holo {
  position: relative; height: min(78vh, 760px); min-height: 460px; border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 55% 55% at 50% 55%, rgba(31, 181, 168, .14), transparent 70%),
    linear-gradient(180deg, rgba(6, 26, 28, .6), rgba(3, 13, 15, .9));
  overflow: hidden;
}
.holo canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.holo canvas:active { cursor: grabbing; }
.holo::before, .holo::after { z-index: 3; }
.holo-hud { position: absolute; z-index: 2; font-size: 11px; letter-spacing: .14em; color: var(--muted); pointer-events: none; line-height: 1.7; }
.holo-hud b { color: var(--cyan); font-weight: 400; font-size: 13px; }
.holo-hud.tl { top: 20px; left: 22px; }
.holo-hud.tr { top: 20px; right: 22px; color: var(--copper); white-space: pre; }
.holo-hud.bl { bottom: 22px; left: 22px; color: var(--dim); }
.holo-label { position: absolute; left: 0; top: 0; z-index: 2; font-size: 11px; letter-spacing: .12em; color: var(--copper); pointer-events: none; white-space: nowrap;
  background: rgba(3, 13, 15, .7); padding: 2px 6px; border: 1px solid rgba(255, 138, 61, .35); }
.holo-label[hidden] { display: none; }
.holo-controls { position: absolute; z-index: 2; right: 18px; bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.holo-controls button, .seg button {
  background: rgba(3, 13, 15, .7); border: 1px solid var(--line-2); color: var(--muted); cursor: pointer;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; padding: 10px 14px; transition: all .25s;
}
.holo-controls button:hover { color: var(--cyan); border-color: var(--cyan); }
.holo-controls button[aria-pressed="true"] { color: var(--bg); background: var(--cyan); border-color: var(--cyan); }
.seg { display: flex; }
.seg button + button { border-left: 0; }
.holo-loading { position: absolute; inset: 0; display: grid; place-content: center; gap: 14px; justify-items: center; z-index: 1; font-size: 12px; letter-spacing: .3em; color: var(--dim); transition: opacity .6s; }
.holo-loading span { width: 60px; height: 60px; border: 1px solid var(--line-2); border-top-color: var(--cyan); border-radius: 50%; animation: spin 1s linear infinite; }
.holo.ready .holo-loading { opacity: 0; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Prozess-Schritte */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { position: relative; border: 1px solid var(--line); background: var(--bg-2); padding: 12px 12px 22px; transition: border-color .3s; }
.step:hover { border-color: var(--line-2); }
.step figure { margin: 0 0 16px; aspect-ratio: 4 / 3; overflow: hidden; background: #010607; }
.step img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.6) brightness(.85); transition: filter .6s, transform 1s var(--ease); }
.step:hover img { filter: none; transform: scale(1.04); }
.step .mono { font-size: 11px; letter-spacing: .18em; color: var(--copper); padding: 0 8px; }
.step h4 { margin: 6px 8px 6px; font-size: 20px; font-weight: 600; letter-spacing: .06em; }
.step p { margin: 0 8px; color: var(--muted); font-size: 15px; }
.step p.credit { margin-top: 10px; font-size: 13px; color: var(--dim); }
.step::after { content: ""; position: absolute; right: -23px; top: 40%; width: 22px; height: 1px; background: var(--line-2); }
.step:nth-child(3n)::after, .step:last-child::after { display: none; }

/* Konstruktion */
.konstr { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.k-card { border: 1px solid var(--line); background: var(--bg-2); display: flex; flex-direction: column; }
.k-media { aspect-ratio: 16 / 9; background: #010607; overflow: hidden; border-bottom: 1px solid var(--line); }
.k-media video, .k-media img { width: 100%; height: 100%; object-fit: contain; }
.k-media.light { background: #e9eeee; }
.k-media.light img { object-fit: contain; padding: 10px; filter: grayscale(1) contrast(1.05); }
.k-body { padding: 22px 24px 26px; }
.k-body .mono { font-size: 11px; letter-spacing: .18em; }
.k-body h3 { margin: 6px 0 8px; font-size: 21px; font-weight: 600; letter-spacing: .04em; }
.k-body p { margin: 0; color: var(--muted); }

/* Roadmap */
.roadmap { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); position: relative; }
.roadmap li { padding: 30px 26px 30px; border-right: 1px solid var(--line); position: relative; }
.roadmap li:last-child { border-right: 0; }
.roadmap li::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: var(--line); }
.roadmap li.done::before { background: var(--cyan); }
.roadmap li.now::before { background: linear-gradient(90deg, var(--cyan), var(--copper)); box-shadow: 0 0 12px var(--copper); }
.roadmap .mono { font-size: 11px; letter-spacing: .18em; color: var(--dim); }
.roadmap .now .mono { color: var(--copper); }
.roadmap .done .mono { color: var(--cyan); }
.roadmap b { display: block; margin: 8px 0 8px; font-size: 20px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.roadmap p { margin: 0; color: var(--muted); font-size: 15px; }
.roadmap li:not(.done):not(.now) b { color: var(--muted); }

@media (max-width: 1100px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
  .roadmap { grid-template-columns: 1fr 1fr; }
  .roadmap li:nth-child(2) { border-right: 0; }
  .roadmap li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .holo { height: 70vh; min-height: 420px; }
  .holo-hud.bl, .holo-hud.tr { display: none; }
  .holo-controls { left: 12px; right: 12px; bottom: 12px; justify-content: flex-start; }
  .holo-controls button, .seg button { padding: 8px 10px; font-size: 11px; }
  .steps, .konstr, .roadmap { grid-template-columns: 1fr; }
  .roadmap li { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* Über mich: Scan-Porträt, Stationen, Werkzeuge, Marke */
.about-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.about-hero .lead + .lead { margin-top: 14px; }
.about-hero .page-title { font-size: clamp(40px, 6vw, 90px); }
.scan-portrait { position: relative; margin: 0; border: 1px solid var(--line-2); padding: 12px; background: rgba(6, 26, 28, .5); }
.scan-portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(.8); }
.scan-frame { position: relative; }
.scan-frame::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 50%, rgba(3, 13, 15, .6)); }
.face { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; overflow: visible; }
.face .tri path { fill: none; stroke: var(--red); stroke-width: 3; stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 1.6s .6s var(--ease) forwards; }
.face .tri polygon { fill: none; stroke: var(--red); stroke-width: 2.2; stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 2.2s .9s var(--ease) forwards; }
.face .tri rect.box { fill: none; stroke: var(--red); stroke-width: 1; opacity: 0; animation: fadeInFaint .6s 1.6s forwards; }
@keyframes fadeInFaint { to { opacity: .4; } }
.face .pts circle { opacity: 0; animation: fadeIn .4s forwards; }

.face .pts circle.c { fill: none; stroke: var(--cyan); stroke-width: 4; }
.face .pts circle.r { fill: var(--red); }
.face .pts circle:nth-child(1) { animation-delay: .3s; } .face .pts circle:nth-child(2) { animation-delay: .45s; }
.face .pts circle:nth-child(3) { animation-delay: .6s; } .face .pts circle:nth-child(4) { animation-delay: .75s; }
.face .pts circle:nth-child(5) { animation-delay: .9s; } .face .pts circle:nth-child(6) { animation-delay: 1.2s; }
.face .ticks path { fill: none; stroke: var(--cyan); stroke-width: 2; opacity: 0; animation: fadeIn .5s 1.4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
.scanline { position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 3; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); opacity: .7; animation: scanY 4.5s ease-in-out infinite; }
@keyframes scanY { 0%, 100% { top: 0; } 50% { top: calc(100% - 2px); } }
.scan-portrait figcaption { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; padding: 14px 6px 4px; font-size: 11px; letter-spacing: .14em; }
.scan-portrait figcaption span { color: var(--muted); }
.scan-portrait figcaption b { font-weight: 400; color: var(--text); }

.stations { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); }
.stations li { position: relative; display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 18px 0 18px 32px; border-bottom: 1px solid var(--line); }
.stations li::before { content: ""; position: absolute; left: -6px; top: 26px; width: 10px; height: 10px; transform: rotate(45deg); border: 1px solid var(--cyan); background: var(--bg); }
.stations li.now::before { background: var(--copper); border-color: var(--copper); box-shadow: 0 0 10px var(--copper); }
.stations .mono { font-size: 13px; letter-spacing: .14em; color: var(--copper); padding-top: 3px; }
.stations b { font-weight: 600; font-size: 19px; letter-spacing: .02em; }
.stations p { margin: 4px 0 0; color: var(--muted); }

.toolgrid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.tool-col { padding: 28px 30px; border-right: 1px solid var(--line); }
.tool-col:last-child { border-right: 0; }
.tool-col .mono { font-size: 12px; letter-spacing: .2em; }
.tool-col ul { list-style: none; margin: 16px 0 0; padding: 0; }
.tool-col li { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.tool-col li:last-child { border-bottom: 0; }

.brand-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: center; border: 1px solid var(--line); padding: 44px; background: rgba(6, 26, 28, .5); }
.brand-block img { width: 100%; opacity: .9; }
.brand-block h3 { margin: 8px 0 12px; font-size: clamp(26px, 2.6vw, 38px); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.brand-block p { margin: 0; color: var(--muted); font-size: 17px; }

/* Rechtstexte */
.legal { max-width: 860px; }
.legal h2 { font-size: 22px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 44px 0 10px; color: var(--cyan); }
.legal p, .legal li { color: var(--muted); }
.legal .ph { color: var(--copper); border-bottom: 1px dashed var(--copper); }

@media (max-width: 1100px) {
  .about-hero { grid-template-columns: 1fr; }
  .scan-portrait { max-width: 520px; }
  .brand-block { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .stations li { grid-template-columns: 1fr; gap: 4px; padding-left: 22px; }
  .toolgrid { grid-template-columns: 1fr; }
  .tool-col { border-right: 0; border-bottom: 1px solid var(--line); }
  .brand-block { padding: 24px; gap: 28px; }
}

/* Rechtehinweis im Projektfenster */
.d-credit { margin: 18px 0 0; padding: 10px 14px; font-size: 11px; letter-spacing: .1em;
  color: var(--muted); border: 1px solid var(--line); border-left: 2px solid var(--copper); text-transform: none; }
.d-credit[hidden] { display: none; }

/* ---------- VR-Raum ---------- */
.vr-stage { position: relative; height: 100vh; height: 100svh; min-height: 540px; overflow: hidden; background: #010607; }
.vr-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.vr-stage canvas:active { cursor: grabbing; }
.vr-stage canvas.zeigt { cursor: pointer; }
.vr-stage canvas.greift { cursor: nesw-resize; }
.vr-stage canvas.dreht { cursor: move; }
.vr-ui {
  position: absolute; z-index: 2; left: calc(var(--gutter) + 14px); bottom: clamp(24px, 6vh, 60px);
  max-width: 430px; padding: 22px 24px 18px;
  background: rgba(3, 13, 15, .8); border: 1px solid var(--line-2); backdrop-filter: blur(8px);
}
.vr-ui h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; line-height: 1; margin: 10px 0 12px; }
.vr-ui p { font-size: 15px; line-height: 1.55; margin: 0 0 16px; }
.vr-ui .btn-hud { cursor: pointer; }
.vr-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.vr-ui .btn-hud[disabled] { opacity: .5; cursor: default; }
.vr-ui .btn-hud[disabled]:hover { background: transparent; color: var(--cyan); border-color: var(--line-2); }
.vr-hint { margin: 14px 0 0 !important; font-size: 12px !important; letter-spacing: .06em; color: var(--muted); }
.vr-load {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  color: var(--cyan); font-size: 13px; letter-spacing: .3em; text-transform: uppercase; transition: opacity .8s;
}
.vr-load.weg { opacity: 0; }
.vr-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 760px) {
  .vr-stage { height: auto; min-height: 0; overflow: visible; }
  .vr-stage canvas { position: relative; height: 72vh; height: 72svh; }
  .vr-ui { position: relative; left: auto; bottom: auto; max-width: none; margin: 0 16px 24px; padding: 18px 16px; }
  .vr-ui p { font-size: 14px; margin-bottom: 12px; }
}

/* Links im Fließtext zusätzlich unterstrichen, nicht nur farbig */
.legal p a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
