:root {
  --bg: #0a0a0c;
  --surface: #111114;
  --surface-2: #16161a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #ededf0;
  --muted: #8b8b95;
  --accent: #8b9cff;
  --accent-2: #b7c1ff;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
::selection { background: var(--accent); color: #0a0a0c; }
a { color: inherit; }

/* ---------- Hintergrund: dezentes Licht + Raster ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.backdrop::before {
  content: ""; position: absolute; left: 50%; top: -30vh; width: 110vw; height: 80vh; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(139, 156, 255, .14), transparent 65%);
  animation: breathe 12s ease-in-out infinite;
}
.backdrop::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
@keyframes breathe { 50% { opacity: .65; transform: translateX(-50%) scale(1.08); } }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px max(24px, calc((100vw - 1100px) / 2));
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
}
.nav.scrolled {
  background: rgba(10, 10, 12, .72); border-color: var(--border);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.brand { font-weight: 700; letter-spacing: -.01em; text-decoration: none; opacity: 0; transition: opacity .4s; }
.nav.scrolled .brand { opacity: 1; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  color: var(--muted); text-decoration: none; font-size: .9rem; padding: 8px 14px; border-radius: 8px;
  transition: color .25s;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-cta {
  font: inherit; font-size: .88rem; font-weight: 500; cursor: pointer; margin-left: 8px;
  padding: 8px 16px; border-radius: 8px; color: var(--text);
  background: transparent; border: 1px solid var(--border-strong); transition: background .25s, border-color .25s;
}
.nav-cta:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.3); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 22vh 24px 80px; position: relative;
}
.eyebrow {
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
  padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; margin-bottom: 28px;
}
.title {
  font-size: clamp(3.4rem, 11vw, 8.5rem); font-weight: 700; line-height: 1; letter-spacing: -.045em;
  display: flex; gap: .22em; flex-wrap: wrap; justify-content: center;
}
.title-word {
  display: inline-block; color: var(--text);
  opacity: 0; transform: translateY(30px); filter: blur(8px);
  animation: titleIn 1.2s var(--ease) .1s forwards;
}
.title-word.accent {
  background: linear-gradient(180deg, var(--accent-2), var(--accent) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation-delay: .25s;
}
@keyframes titleIn { to { opacity: 1; transform: none; filter: blur(0); } }

.tagline { margin-top: 28px; font-size: clamp(1.05rem, 2.2vw, 1.35rem); color: var(--muted); min-height: 1.7em; }
.typer { color: var(--text); }
.caret {
  display: inline-block; width: 2px; height: 1.1em; margin-left: 4px; vertical-align: -0.15em;
  background: var(--accent); animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-buttons { display: flex; gap: 12px; margin-top: 44px; flex-wrap: wrap; justify-content: center; }

.scroll-hint {
  position: absolute; bottom: 40px; width: 1px; height: 56px; overflow: hidden;
  background: var(--border);
}
.scroll-hint::after {
  content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%;
  background: var(--text); animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine { to { top: 100%; } }

/* ---------- Buttons ---------- */
.btn {
  font: inherit; font-weight: 500; font-size: .95rem; cursor: pointer; text-decoration: none;
  padding: 12px 24px; border-radius: 10px; display: inline-flex; align-items: center; gap: 8px;
  transition: transform .3s var(--ease), background .25s, border-color .25s, color .25s;
}
.btn-primary { background: var(--text); color: #0a0a0c; border: 1px solid var(--text); }
.btn-primary:hover { background: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.3); transform: translateY(-2px); }

/* ---------- Sections ---------- */
.section { max-width: 1100px; margin: 0 auto; padding: 120px 24px 20px; }
.section-head { display: flex; align-items: baseline; gap: 16px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 600; letter-spacing: -.03em; }
.num { font-family: var(--mono); font-size: .8rem; color: var(--accent); }
.section-lead { color: var(--muted); margin: 10px 0 44px; max-width: 620px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Tiles ---------- */
.tiles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.tile {
  font: inherit; color: inherit; text-align: left; cursor: pointer; position: relative;
  background: var(--bg); border: 0; padding: 32px 28px;
  display: flex; flex-direction: column; gap: 4px;
  transition: background .35s, opacity .9s var(--ease), transform .9s var(--ease);
}
.tile:hover { background: var(--surface); }
.icon {
  width: 26px; height: 26px; margin-bottom: 18px; fill: none; stroke: var(--accent);
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.tile-title { font-size: 1.08rem; font-weight: 600; }
.tile-sub { color: var(--muted); font-size: .92rem; }
.tile-arrow {
  position: absolute; top: 30px; right: 28px; color: var(--muted);
  transition: transform .35s var(--ease), color .35s;
}
.tile:hover .tile-arrow { transform: translateX(4px); color: var(--text); }

/* ---------- Skills ---------- */
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px 56px; }
.skill-head { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: .95rem; }
.pct { font-family: var(--mono); font-size: .82rem; color: var(--muted); }
.bar { height: 3px; background: var(--border); border-radius: 3px; overflow: hidden; }
.bar i {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 1.6s var(--ease);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.chip {
  padding: 6px 14px; border-radius: 8px; font-size: .84rem; color: var(--muted);
  border: 1px solid var(--border); transition: color .25s, border-color .25s;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }

/* ---------- Projekte ---------- */
.filters { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 28px; padding: 4px; border: 1px solid var(--border); border-radius: 10px; width: fit-content; }
.filter {
  font: inherit; font-size: .88rem; cursor: pointer; padding: 7px 16px; border-radius: 7px; color: var(--muted);
  background: transparent; border: 0; transition: color .25s, background .25s;
}
.filter:hover { color: var(--text); }
.filter.active { color: var(--text); background: var(--surface-2); }

.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.project {
  font: inherit; color: inherit; text-align: left; cursor: pointer; position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), border-color .3s, opacity .5s var(--ease);
}
.project::before {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: var(--pc); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.project:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.project:hover::before { transform: scaleX(1); }
.project.hide { display: none; }
.project-top { display: flex; justify-content: space-between; align-items: center; }
.project-cat { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pc); }
.project h3 { margin: 18px 0 6px; font-size: 1.15rem; font-weight: 600; }
.project p { color: var(--muted); font-size: .93rem; flex: 1; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.tag { font-family: var(--mono); font-size: .72rem; padding: 3px 9px; border-radius: 6px; border: 1px solid var(--border); color: var(--muted); }

/* ---------- Lieblingsspiele ---------- */
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.game {
  font: inherit; color: inherit; cursor: pointer; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0 0 22px; overflow: hidden; display: flex; flex-direction: column;
  transition: transform .4s var(--ease), border-color .3s, opacity .9s var(--ease);
}
.game:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--g) 45%, transparent); }
.game-media {
  height: 150px; display: grid; place-items: center; margin-bottom: 18px; position: relative;
  background: radial-gradient(ellipse at 50% 120%, color-mix(in srgb, var(--g) 30%, transparent), transparent 70%), var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.game-logo { height: 64px; width: auto; max-width: 70%; object-fit: contain; transition: transform .6s var(--ease); }
.game-logo.logo-white { filter: brightness(0) invert(1); }
.game-logo.logo-wide { height: 100px; }
.game:hover .game-logo { transform: scale(1.07); }
.game-title { padding: 0 22px; font-weight: 600; font-size: 1.08rem; }
.game-sub { padding: 0 22px; color: var(--muted); font-size: .9rem; }

/* ---------- KI ---------- */
.ai-banner {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center;
  padding: 52px; border-radius: 20px; border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(139, 156, 255, .08), transparent 60%), var(--surface);
}
.ai-title { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; margin: 12px 0 16px; }
.ai-text p { color: var(--muted); margin-bottom: 28px; }
.stats { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface); padding: 20px 24px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.stat-num { font-size: 2rem; font-weight: 600; letter-spacing: -.03em; }
.stat-label { color: var(--muted); font-size: .9rem; }

/* ---------- Footer ---------- */
.footer {
  max-width: 1100px; margin: 120px auto 0; padding: 32px 24px 40px;
  display: flex; justify-content: space-between; color: var(--muted); font-size: .88rem;
  border-top: 1px solid var(--border);
}
.to-top { text-decoration: none; transition: color .25s; }
.to-top:hover { color: var(--text); }

/* ---------- Panel / Modal ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px;
  background: rgba(0, 0, 0, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .35s var(--ease);
}
.overlay.open { opacity: 1; }
.overlay[hidden] { display: none; }
.panel {
  position: relative; width: min(600px, 100%); max-height: 86vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 18px; padding: 44px 40px 36px;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .8);
  transform: translateY(24px) scale(.98); transition: transform .45s var(--ease);
}
.overlay.open .panel { transform: none; }
.panel-body > * { opacity: 0; transform: translateY(10px); animation: itemIn .5s var(--ease) forwards; }
.panel-body > *:nth-child(2) { animation-delay: .05s; }
.panel-body > *:nth-child(3) { animation-delay: .1s; }
.panel-body > *:nth-child(4) { animation-delay: .15s; }
.panel-body > *:nth-child(n+5) { animation-delay: .2s; }
@keyframes itemIn { to { opacity: 1; transform: none; } }
.panel-kicker { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.panel h3 { font-size: 1.7rem; font-weight: 600; margin: 8px 0 14px; letter-spacing: -.03em; }
.panel p { color: #b4b4bd; margin-bottom: 14px; }
.panel strong, .panel b { color: var(--text); font-weight: 600; }
.panel-logo { display: block; height: 56px; width: auto; max-width: 60%; object-fit: contain; margin-bottom: 8px; }
.panel-logo-wide { height: 90px; }
.close {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border); background: transparent; display: grid; place-items: center;
  transition: background .25s, border-color .25s;
}
.close svg { width: 16px; height: 16px; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; fill: none; }
.close:hover { background: rgba(255,255,255,.06); border-color: var(--border-strong); }
.facts { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 18px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.facts li { background: var(--surface); padding: 14px 16px; font-size: .9rem; color: #b4b4bd; }
.facts b { display: block; font-family: var(--mono); font-size: .68rem; font-weight: 400; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 2px; }
.list { list-style: none; display: grid; gap: 12px; }
.list li { padding-left: 20px; position: relative; color: #b4b4bd; }
.list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 1px; background: var(--accent); }
.code-tabs { display: flex; gap: 4px; margin-bottom: 10px; }
.ctab { font: inherit; font-size: .82rem; cursor: pointer; padding: 6px 12px; border-radius: 7px; border: 1px solid transparent; background: transparent; color: var(--muted); }
.ctab.active { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }
.code { font-family: var(--mono); font-size: .85rem; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 18px; overflow-x: auto; margin-bottom: 16px; color: #d4d4dc; }
.code .k { color: #b7a6ff; } .code .f { color: #8bb8ff; } .code .s { color: #a8d8a8; } .code .c { color: #62626e; font-style: italic; }
.contact-list { display: grid; gap: 10px; margin-top: 8px; }
.contact-item {
  font: inherit; color: inherit; text-align: left; cursor: pointer; text-decoration: none;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 16px 18px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg);
  transition: border-color .25s, background .25s;
}
.contact-item:hover { border-color: var(--border-strong); background: var(--surface-2); }
.contact-item .icon { margin: 0; }
.contact-item b { display: block; font-family: var(--mono); font-size: .68rem; font-weight: 400; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact-action { font-size: .85rem; color: var(--muted); transition: color .25s; }
.contact-item:hover .contact-action { color: var(--text); }
.muted { color: var(--muted) !important; font-size: .85rem; }

/* ---------- Hero-Intro ---------- */
.hero-intro { margin-top: 18px; max-width: 560px; color: var(--muted); font-size: 1rem; }

/* ---------- Arbeitsweise ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step {
  position: relative; padding: 26px 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  transition: border-color .3s, opacity .9s var(--ease), transform .9s var(--ease);
}
.step:hover { border-color: var(--border-strong); }
.step-num {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; margin-bottom: 18px;
  font-family: var(--mono); font-size: .8rem; color: var(--accent); border: 1px solid rgba(139,156,255,.35);
}
.step h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .92rem; }

/* ---------- Mobile Navigation ---------- */
.mobile-nav { display: none; }

/* ---------- Responsive (Bildschirmbreite) ---------- */
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) {
  .ai-banner { grid-template-columns: 1fr; padding: 34px 24px; }
  .nav-link { display: none; }
  .brand { opacity: 1; }
}
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
  .panel { padding: 40px 22px 26px; }
  .tiles, .projects, .steps { grid-template-columns: 1fr; }
}

/* ---------- Geräte-Erkennung: Handy / Tablet (per JS gesetzt) ---------- */
.is-mobile .nav-links { display: none; }
.is-mobile .nav { padding: 14px 20px; }
.is-mobile .brand { opacity: 1; }
.is-mobile .hero { padding: 18vh 20px 110px; min-height: 100svh; }
.is-mobile .title { font-size: clamp(3.2rem, 17vw, 5rem); }
.is-mobile .tagline { font-size: 1.05rem; min-height: 3.4em; }
.is-mobile .hero-buttons { flex-direction: column; width: 100%; max-width: 340px; }
.is-mobile .hero-buttons .btn { justify-content: center; padding: 15px 24px; }
.is-mobile .scroll-hint { display: none; }
.is-mobile .section { padding: 80px 20px 10px; }
.is-mobile .section-lead { margin-bottom: 30px; }
.is-mobile .filters { width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.is-mobile .filter { padding: 10px 16px; white-space: nowrap; }
.is-mobile .game-media { height: 130px; }
.is-mobile .footer { margin-top: 80px; padding-bottom: 110px; flex-direction: column; gap: 8px; align-items: center; }

/* Bottom-Navigation wie in einer App */
.is-mobile .mobile-nav {
  display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 60;
  left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  padding: 6px; border-radius: 18px; border: 1px solid var(--border-strong);
  background: rgba(17, 17, 20, .85); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 20px 50px -10px rgba(0,0,0,.8);
}
.mnav {
  font: inherit; background: none; border: 0; color: var(--muted); text-decoration: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px; border-radius: 12px;
  font-size: .66rem; -webkit-tap-highlight-color: transparent; transition: color .25s, background .25s;
}
.mnav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mnav.active { color: var(--text); background: rgba(255,255,255,.06); }

/* Fenster als Bottom-Sheet auf dem Handy */
.is-mobile .overlay { place-items: end center; padding: 0; }
.is-mobile .panel {
  width: 100%; max-height: 88svh; border-radius: 22px 22px 0 0; border-bottom: 0;
  padding: 34px 22px calc(28px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .45s var(--ease);
}
.is-mobile .panel::before {
  content: ""; position: absolute; top: 10px; left: 50%; width: 40px; height: 4px; margin-left: -20px;
  border-radius: 4px; background: var(--border-strong);
}
.is-mobile .overlay.open .panel { transform: none; }
.is-mobile .facts { grid-template-columns: 1fr; }

/* Touch-Geräte: keine Hover-Bewegungen, größere Tippflächen, Tipp-Feedback */
.is-touch .tile:hover, .is-touch .project:hover, .is-touch .game:hover, .is-touch .btn:hover { transform: none; }
.is-touch .tile:active, .is-touch .project:active, .is-touch .game:active, .is-touch .step:active { transform: scale(.98); transition: transform .15s; }
.is-touch .tile-arrow { color: var(--text); }
.is-touch * { -webkit-tap-highlight-color: transparent; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* =====================================================================
   NOIR CITY THEME – Schwarz-Weiß, Silber, warmes Fensterlicht
   ===================================================================== */
@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito.ttf") format("truetype");
  font-weight: 200 1000; font-display: swap;
}
:root {
  --bg: #060606;
  --surface: rgba(22, 22, 22, .72);
  --surface-2: #1b1b1b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f4f4;
  --muted: #9d9d9d;
  --accent: #dcdcdc;     /* Silber */
  --accent-2: #ffffff;
  --warm: #f2e2c2;       /* Fensterlicht */
  --radius: 20px;
  --display: "Nunito", "Segoe UI Rounded", "Segoe UI", system-ui, sans-serif;
}
::selection { background: #fff; color: #000; }
body { background: var(--bg); }

/* Typografie: runder */
.title, .section-head h2, .ai-title, .panel h3, .brand, .step h3, .tile-title, .game-title, .project h3, .btn, .nav-cta, .stat-num {
  font-family: var(--display);
}
.title { font-size: clamp(2.6rem, 7.2vw, 5.6rem); font-weight: 800; letter-spacing: -.02em; text-transform: none; gap: .28em; }
.title-word { color: #fff; text-shadow: 0 4px 40px rgba(0, 0, 0, .6); }
.title-word.accent {
  background: linear-gradient(180deg, #ffffff 15%, #a9a9a9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; filter: drop-shadow(0 0 24px rgba(255, 255, 255, .18));
}
.section-head h2 { font-weight: 800; letter-spacing: -.02em; text-transform: none; }
.ai-title { font-weight: 800; text-transform: none; }
.num { color: var(--muted); }
.brand { font-weight: 800; letter-spacing: -.01em; text-transform: none; }

/* Navigation */
.nav.scrolled { background: rgba(6, 6, 6, .72); }
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-cta { border-radius: 999px; border-color: var(--border-strong); }
.nav-cta:hover { background: #fff; color: #000; border-color: #fff; }

/* Hero */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: #d9d9d9; border-color: var(--border-strong); background: rgba(0, 0, 0, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.open-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 10px var(--warm); }
.typer { color: #fff; }
.caret { background: #fff; }
.hero-intro { color: #c4c4c4; text-shadow: 0 2px 20px rgba(0,0,0,.8); }
.tagline { text-shadow: 0 2px 20px rgba(0,0,0,.8); }
.scroll-hint { display: block; }

/* Buttons: rund */
.btn { border-radius: 999px; padding: 13px 26px; font-weight: 700; }
.btn-primary { background: #fff; border-color: #fff; color: #000; box-shadow: 0 10px 30px -10px rgba(255, 255, 255, .35); }
.btn-primary:hover { background: #e9e9e9; }
.btn-ghost { background: rgba(0, 0, 0, .4); border-color: var(--border-strong); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .4); }

/* Karten: runder, monochrom */
.tiles { border-radius: 24px; }
.tile { background: rgba(10, 10, 10, .95); }
.tile:hover { background: #161616; }
.icon { stroke: #e6e6e6; filter: none; }
.project, .step, .game { border-radius: var(--radius); }
.project:hover, .step:hover { border-color: rgba(255, 255, 255, .25); box-shadow: 0 20px 50px -25px rgba(255, 255, 255, .15); }
.step-num { border-radius: 50%; color: #fff; border-color: var(--border-strong); box-shadow: none; }
.bar { height: 4px; border-radius: 4px; }
.bar i { background: linear-gradient(90deg, #8a8a8a, #ffffff); box-shadow: 0 0 10px rgba(255, 255, 255, .25); }
.chip, .tag { border-radius: 999px; }
.chip:hover { color: #fff; border-color: rgba(255, 255, 255, .35); }
.filters { border-radius: 999px; }
.filter { border-radius: 999px; }
.filter.active { background: #fff; color: #000; box-shadow: none; }
.game-logo.logo-mc { height: auto; width: 78%; max-width: 78%; }

/* KI-Bereich mit Manhattan-Foto */
.ai-banner { position: relative; overflow: hidden; border-radius: 28px; background: #0b0b0b; isolation: isolate; }
.ai-photo {
  position: absolute; top: 0; right: 0; width: 62%; height: 100%; object-fit: cover; object-position: center 60%;
  z-index: -1; filter: grayscale(1) brightness(.8);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
}
.ai-text, .stats { position: relative; }
.stats { background: rgba(255, 255, 255, .1); border-radius: 18px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.stat { background: rgba(8, 8, 8, .6); }
.stat-num { color: #fff; text-shadow: none; font-weight: 800; }

/* Fenster */
.panel { background: linear-gradient(180deg, #161616, #0c0c0c); border-radius: 26px; }
.panel-kicker { color: var(--muted); }
.list li::before { background: #fff; }
.close { border-radius: 50%; }
.contact-item { border-radius: 16px; }
.footer { border-top-color: var(--border); }
.is-mobile .mobile-nav { background: rgba(12, 12, 12, .88); border-radius: 24px; }
.mnav { border-radius: 16px; }
.mnav.active { color: #fff; }

/* Handy */
.is-mobile .title { font-size: clamp(2.4rem, 13vw, 3.6rem); }
.is-mobile .hero { padding: 16vh 20px 120px; }
.is-mobile .eyebrow { flex-wrap: wrap; justify-content: center; max-width: 100%; letter-spacing: .14em; font-size: .7rem; text-align: center; }
.is-mobile .ai-photo { width: 100%; height: 55%; top: auto; bottom: 0; -webkit-mask-image: linear-gradient(180deg, transparent, #000 50%); mask-image: linear-gradient(180deg, transparent, #000 50%); }
.is-mobile .ai-banner { padding-bottom: 40px; }

.dot { background: #fff; opacity: .55; } .project::before { background: linear-gradient(90deg, #fff, transparent); }

/* =====================================================================
   Uhr (oben links) + Sprachumschalter (oben rechts)
   ===================================================================== */
.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; }
.nav-left, .nav-right { display: flex; align-items: center; gap: 14px; min-width: 0; }
.clock {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 12px;
  border: 1px solid var(--border-strong); border-radius: 999px;
  background: rgba(0, 0, 0, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.clock-icon { width: 15px; height: 15px; fill: none; stroke: var(--mood, #fff); stroke-width: 1.8; stroke-linecap: round; flex: none; }
.clock-time { font-family: var(--mono); font-size: .86rem; font-variant-numeric: tabular-nums; color: #fff; letter-spacing: .02em; }
.tz-wrap { display: flex; }
.tz-select {
  font: inherit; font-size: .76rem; color: var(--muted); cursor: pointer; max-width: 170px;
  background: rgba(255, 255, 255, .06); border: 0; border-radius: 999px; padding: 4px 24px 4px 10px;
  appearance: none; -webkit-appearance: none; text-overflow: ellipsis;
  background-image: linear-gradient(45deg, transparent 50%, #9d9d9d 50%), linear-gradient(135deg, #9d9d9d 50%, transparent 50%);
  background-position: right 12px center, right 8px center; background-size: 4px 4px; background-repeat: no-repeat;
  transition: color .25s, background-color .25s;
}
.tz-select:hover, .tz-select:focus-visible { color: #fff; background-color: rgba(255, 255, 255, .12); outline: none; }
.tz-select option, .tz-select optgroup { background: #111; color: #eee; }

.lang { display: inline-flex; padding: 3px; border: 1px solid var(--border-strong); border-radius: 999px; background: rgba(0, 0, 0, .45); }
.lang-btn {
  font: inherit; font-family: var(--display); font-size: .74rem; font-weight: 800; letter-spacing: .06em; cursor: pointer;
  color: var(--muted); background: transparent; border: 0; border-radius: 999px; padding: 5px 10px; transition: color .25s, background .25s;
}
.lang-btn:hover { color: #fff; }
.lang-btn[aria-pressed="true"] { background: #fff; color: #000; }

@media (max-width: 820px) { .nav-left .brand { display: none; } }
.is-mobile .nav-left .brand { display: none; }
.is-mobile .tz-select { max-width: 104px; }
.is-mobile .clock-time { font-size: .8rem; }
@media (max-width: 380px) { .clock-icon { display: none; } .tz-select { max-width: 80px; } }

/* =====================================================================
   Stimmungsfarbe – wechselt sehr langsam, gedämpft
   ===================================================================== */
@property --mood-h { syntax: "<number>"; inherits: true; initial-value: 215; }
:root {
  --mood-h: 215;
  --mood: hsl(var(--mood-h) 42% 70%);
  --mood-soft: hsl(var(--mood-h) 55% 60% / .16);
  --mood-glow: hsl(var(--mood-h) 60% 65% / .35);
  animation: mood-shift 120s linear infinite;
}
@keyframes mood-shift { from { --mood-h: 215; } to { --mood-h: 575; } }

.backdrop::before { background: radial-gradient(ellipse at center, var(--mood-soft), transparent 65%); }
.open-dot { background: var(--mood); box-shadow: 0 0 10px var(--mood); }
.title-word.accent { filter: drop-shadow(0 0 26px var(--mood-glow)); }
.bar i { background: linear-gradient(90deg, var(--mood), #ffffff); box-shadow: 0 0 12px var(--mood-glow); }
.project::before { background: linear-gradient(90deg, var(--mood), transparent); }
.project:hover, .step:hover { box-shadow: 0 20px 50px -25px var(--mood-glow); }
.list li::before { background: var(--mood); }
.step-num { border-color: hsl(var(--mood-h) 40% 70% / .35); }
::selection { background: var(--mood); color: #000; }

@media (prefers-reduced-motion: reduce) { :root { animation: none; } }
