@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bg: #17181d;
  --bg-deep: #121317;
  --card: #1d1e25;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #ffffff;
  --muted: #9a9db0;
  --amber: #ffa857;
  --amber-bg: rgba(255, 168, 87, 0.1);
  --amber-line: rgba(255, 168, 87, 0.55);
  --violet: #7c5cff;
  --radius: 12px;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--muted);
  font: 400 18px/1.7 var(--sans);
  /* Footer bleibt auch bei kurzen Seiten unten */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
h1, h2, h3 { font-family: var(--sans); font-weight: 500; color: var(--text); letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
code { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.link, .more { color: var(--amber); text-underline-offset: 0.2em; }
.more { display: inline-block; margin-top: 14px; font-weight: 500; text-decoration: none; }
.more::after { content: " \2192"; }
.more:hover { text-decoration: underline; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: #17181d; padding: 8px 14px; z-index: 50; border-radius: 6px; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(23, 24, 29, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.brand img { display: block; }
nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; font-size: 16px; color: var(--text); }
nav a { text-decoration: none; }
nav a:not(.btn):hover { color: var(--amber); }

/* Buttons: Umriss in Bernstein mit zarter Füllung */
.btn { display: inline-block; padding: 14px 30px; background: var(--amber-bg); color: var(--amber); font-weight: 500; text-decoration: none; border-radius: 6px; border: 1px solid var(--amber); transition: background .15s; }
.btn:hover { background: rgba(255, 168, 87, 0.2); }
.btn-small { padding: 10px 22px; font-size: 16px; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }

/* Pill */
.pill { display: inline-block; margin: 0 0 24px; padding: 6px 18px; border-radius: 999px; background: rgba(255, 168, 87, 0.12); color: var(--amber); font-size: 15px; line-height: 1.4; }
.pill-left { margin-bottom: 18px; }
.project-violet .pill { background: rgba(124, 92, 255, 0.18); color: #b9a8ff; }

/* Hero */
.hero { position: relative; padding: 96px 0 0; overflow: hidden; background:
  radial-gradient(700px 520px at 8% 0%, rgba(255, 168, 87, 0.22), transparent 70%),
  radial-gradient(760px 600px at 96% 18%, rgba(124, 92, 255, 0.26), transparent 70%),
  var(--bg); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 25%, #000, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 75% at 50% 25%, #000, transparent 80%);
}
.hero-center { position: relative; z-index: 1; text-align: center; }
.hero h1 { font-size: clamp(38px, 6vw, 70px); max-width: 15em; margin: 0 auto 24px; }
.lead { font-size: 20px; color: var(--muted); max-width: 30em; margin: 0 auto 34px; }
.cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 0; }

/* Schwebende Kacheln */
.tiles { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.tile { position: absolute; width: 72px; height: 72px; border-radius: 16px; display: grid; place-items: center; color: #17181d; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35); }
.t1 { left: 7%; top: 170px; background: #ffb878; transform: rotate(-8deg); }
.t2 { right: 8%; top: 120px; background: #a99bff; transform: rotate(7deg); }
.t3 { right: 14%; top: 340px; background: #8fe3b4; transform: rotate(-5deg); width: 60px; height: 60px; border-radius: 14px; }

/* Bühne mit Browser und Terminal */
.stage { position: relative; z-index: 2; margin-top: 72px; padding-bottom: 64px; }
.browser, .term, .shot { background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.browser { max-width: 920px; margin: 0 auto; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5); }
.browser-bar, .term-bar, .shot-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font: 500 13px/1 var(--mono); }
.browser-bar i, .term-bar i, .shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); display: block; }
.browser-bar span, .term-bar span { margin-left: 10px; }
.browser-body { padding: 22px; display: grid; gap: 22px; }
.sk { display: block; background: rgba(255, 255, 255, 0.07); border-radius: 6px; }
.mini-nav { display: flex; align-items: center; gap: 14px; }
.sk-logo { width: 90px; height: 16px; background: var(--amber); opacity: 0.8; margin-right: auto; }
.sk-link { width: 54px; height: 10px; }
.sk-btn { width: 80px; height: 26px; background: var(--amber-bg); border: 1px solid var(--amber-line); }
.mini-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; }
.mini-copy { display: grid; gap: 12px; }
.sk-h { height: 22px; width: 100%; background: rgba(255, 255, 255, 0.16); }
.sk-h.short { width: 62%; }
.sk-p { height: 10px; width: 92%; }
.sk-p.mid { width: 70%; }
.mini-art { height: 150px; border-radius: 10px; background: linear-gradient(135deg, rgba(255, 168, 87, 0.55), rgba(124, 92, 255, 0.45)); }
.mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sk-card { height: 70px; border-radius: 10px; }

.term { position: absolute; right: 0; bottom: 0; width: min(430px, 46%); font: 14px/1.6 var(--mono); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); background: #101116; }
.term-body { padding: 18px 20px; color: var(--text); }
.cmd { margin: 0 0 12px; overflow-wrap: anywhere; }
.cmd:last-child { margin-bottom: 0; }
.cmd a { color: var(--amber); }
.ps { color: #8fe3b4; margin-right: 8px; }
.term dl { margin: 0 0 12px; display: grid; grid-template-columns: max-content 1fr; gap: 4px 18px; font-size: 13px; }
.term dt { color: var(--muted); }
.term dd { margin: 0; }
.cursor { display: inline-block; width: 8px; height: 1.05em; background: var(--text); vertical-align: text-bottom; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }

/* Technik-Leiste */
.tech { position: relative; z-index: 1; text-align: center; padding-top: 8px; padding-bottom: 56px; }
.tech p { margin: 0 0 20px; font-size: 16px; }
.tech ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; }
.tech li { font-size: 22px; font-weight: 500; color: rgba(255, 255, 255, 0.55); letter-spacing: -0.01em; }

/* Blöcke */
.block { padding: 96px 0 0; }
.block-last { padding-bottom: 96px; }
.head { margin-bottom: 44px; max-width: 40em; }
.head-center { margin-left: auto; margin-right: auto; text-align: center; }
.head h2 { font-size: clamp(32px, 4.6vw, 52px); }
.intro { font-size: 19px; margin: 16px 0 0; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.card h3 { font-size: 24px; margin-bottom: 12px; }
.card p { margin: 0; font-size: 17px; }
.card-center { text-align: center; }
.card-center .box { margin-left: auto; margin-right: auto; }
.box { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 22px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--amber); background: rgba(255, 255, 255, 0.02); }
.box-no { font-size: 20px; font-weight: 500; color: var(--text); }
.steps { list-style: none; padding: 0; margin: 0; }

/* Referenzen */
.ref { padding: 18px 18px 28px; }
.shot { margin-bottom: 22px; background: #121317; }
.shot-bar { padding: 10px 12px; }
.shot-body { padding: 16px; display: grid; gap: 12px; min-height: 150px; align-content: start; }
.shot .sk-logo { margin-right: 0; width: 70px; height: 12px; }
.sk-art { height: 70px; border-radius: 8px; background: linear-gradient(135deg, rgba(124, 92, 255, 0.55), rgba(124, 92, 255, 0.12)); }
.shot-2 .sk-art { background: linear-gradient(135deg, rgba(143, 227, 180, 0.5), rgba(143, 227, 180, 0.1)); }
.shot-3 .sk-art { background: linear-gradient(135deg, rgba(255, 168, 87, 0.5), rgba(255, 168, 87, 0.1)); }
.shot img { display: block; width: 100%; height: auto; }
.ref h3, .ref p, .ref .more { margin-left: 12px; margin-right: 12px; }
.ref h3 { margin-bottom: 8px; }

/* Große Zeilen für Pakete */
.rows { border-top: 1px solid var(--line); }
.row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.row-main { display: grid; gap: 6px; min-width: 0; }
.row-title { font-size: clamp(26px, 3.4vw, 40px); font-weight: 500; color: var(--text); letter-spacing: -0.02em; line-height: 1.15; }
.row-text { font-size: 17px; }
.row code { margin-top: 8px; font-size: 13.5px; color: rgba(255, 255, 255, 0.5); overflow-wrap: anywhere; }
.arrow { flex: none; color: var(--amber); transition: transform .2s; }
.row:hover .arrow { transform: translate(4px, 4px); }
.row:hover .row-title { color: var(--amber); }
.note { margin: 28px 0 0; font-size: 16px; }

/* Projekte */
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.project { border: 1px solid var(--line); border-radius: 16px; padding: 40px; background: var(--card); position: relative; overflow: hidden; }
.project::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.project-amber::before { background: radial-gradient(420px 260px at 0% 0%, rgba(255, 168, 87, 0.2), transparent 70%); }
.project-violet::before { background: radial-gradient(420px 260px at 100% 0%, rgba(124, 92, 255, 0.28), transparent 70%); }
.project > * { position: relative; }
.project h3 { font-size: clamp(34px, 4vw, 48px); margin-bottom: 14px; }
.project p:last-child { margin-bottom: 0; }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 24px 44px 24px 0; font-size: 21px; font-weight: 500; color: var(--text); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 300 30px/1 var(--sans); color: var(--amber); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 26px; max-width: 38em; }

/* Über mich */
.about { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: center; }
.photo { aspect-ratio: 1; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-strong); background: linear-gradient(135deg, rgba(255, 168, 87, 0.4), rgba(124, 92, 255, 0.3)); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text { max-width: 36em; }
.about-text h2 { font-size: clamp(32px, 4.6vw, 52px); margin-bottom: 22px; }

/* Kontakt */
.contact { position: relative; overflow: hidden; border: 1px solid var(--amber-line); border-radius: 20px; padding: clamp(36px, 6vw, 80px); background:
  radial-gradient(600px 360px at 0% 100%, rgba(255, 168, 87, 0.22), transparent 70%),
  radial-gradient(600px 360px at 100% 0%, rgba(124, 92, 255, 0.24), transparent 70%),
  var(--card); }
.contact h2 { font-size: clamp(36px, 6vw, 68px); margin-bottom: 16px; }
.contact .lead { margin: 0 0 28px; max-width: 30em; }
.mail-big { display: inline-block; font: 500 clamp(20px, 4.2vw, 42px)/1.15 var(--mono); color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 0.2em; overflow-wrap: anywhere; }

/* Footer */
.site-footer { padding: 28px 0; font-size: 15px; border-top: 1px solid var(--line); background: var(--bg-deep); }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.foot span:last-child { display: flex; gap: 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

.hero h1, .lead, .head h2 { text-wrap: balance; }
.browser-body { grid-template-columns: minmax(0, 1fr); }
.browser-body > *, .mini-hero > * { min-width: 0; }
.pill { max-width: 100%; }

@media (max-width: 560px) {
  .sk-link { display: none; }
  .pill { border-radius: 18px; padding: 8px 16px; }
  .cta { flex-direction: column; align-items: center; }
  .cta .btn { width: 100%; max-width: 320px; text-align: center; }
  .tech li { font-size: 19px; }
}

@media (max-width: 960px) {
  .tiles { display: none; }
  .term { position: static; width: auto; margin: 16px auto 0; max-width: 920px; }
  .stage { padding-bottom: 40px; }
}
@media (max-width: 860px) {
  .hero { padding-top: 64px; }
  .stage { margin-top: 48px; }
  .mini-hero { grid-template-columns: 1fr; }
  .mini-art { height: 90px; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .photo { max-width: 180px; }
  .block { padding-top: 64px; }
  .block-last { padding-bottom: 64px; }
  .row { padding: 26px 0; }
  .arrow { width: 28px; height: 28px; }
  nav a:not(.btn) { display: none; }
}

/* Rechtstexte */
.legal h1 { font-size: clamp(32px, 4.6vw, 52px); margin-bottom: 32px; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; }
.legal h3 { font-size: 20px; margin: 32px 0 8px; }
.legal h4 { font-size: 18px; font-weight: 500; color: var(--text); margin: 24px 0 6px; }
.legal a { color: var(--amber); text-underline-offset: 0.2em; overflow-wrap: anywhere; }
