/* Schriften liegen auf dem eigenen Server, es wird nichts von Google oder anderen geladen. */
@font-face {
  font-family: "Bricolage";
  src: url("fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "JBMono";
  src: url("fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --night: #10162b;
  --night-2: #18203d;
  --paper: #e9edf3;
  --ink: #121a2c;
  --ink-soft: #4a5570;
  --amber: #ffb12b;
  --amber-deep: #c77700;
  --signal: #4b7bff;
  --error: #ff4d4d;
  --rule: #c9d1de;

  --bg: var(--paper);
  --text: var(--ink);
  --muted: var(--ink-soft);
  --link: #2a55d6;

  --f-display: "Bricolage", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-body: "Bricolage", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-mono: "JBMono", ui-monospace, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1122;
    --text: #e6eaf2;
    --muted: #9aa5bd;
    --rule: #263050;
    --link: #8fb0ff;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.6;
  font-variation-settings: "opsz" 14;
}
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}
img { max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 32px; } }

/* ---------- Kopf ---------- */

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
}
.logo {
  white-space: nowrap;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: inherit;
  text-decoration: none;
}
.top nav a {
  color: inherit;
  opacity: .72;
  text-decoration: none;
  margin-left: 20px;
  font-size: 16px;
}
.top nav a:hover { opacity: 1; }
@media (max-width: 520px) {
  .top nav a { margin-left: 14px; font-size: 15px; }
  .top nav a.wide { display: none; }
}

/* ---------- Hero: das Handy wird geflasht ---------- */

.hero {
  background:
    radial-gradient(60% 70% at 78% 40%, rgba(75, 123, 255, .22), transparent 70%),
    radial-gradient(40% 50% at 10% 100%, rgba(255, 177, 43, .10), transparent 70%),
    var(--night);
  color: #eef1f8;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-areas: "head" "device" "intro";
  gap: 32px;
  padding: 24px 0 72px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.25fr 1fr;
    grid-template-areas: "head device" "intro device";
    padding: 40px 0 110px;
    gap: 28px 56px;
  }
}

.hero h1 {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 78%;
  font-variation-settings: "opsz" 96;
  font-size: clamp(54px, 11vw, 124px);
  line-height: .92;
  letter-spacing: -0.02em;
  margin: 0;
}
.hero h1 .line { display: block; }
.hero h1 .fixed {
  position: relative;
  display: inline-block;
}
/* Nach dem erfolgreichen Flashen zieht sich eine Linie unter "einfach." */
.hero h1 .fixed::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .02em;
  height: .09em;
  background: var(--amber);
  border-radius: 99px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .9s cubic-bezier(.2, .8, .2, 1);
}
.hero.booted h1 .fixed::after { transform: scaleX(1); }

.hero-grid > .head { grid-area: head; align-self: end; }
.hero-grid > .device-col { grid-area: device; }
.hero-grid > .intro-col { grid-area: intro; align-self: start; }
.hero .intro {
  max-width: 34em;
  margin: 0;
  font-size: 19px;
  color: #b8c1d9;
}
.hero .intro strong { color: #fff; font-weight: 600; }

/* Das Handy */
.device-col { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.phone {
  position: relative;
  width: min(300px, 62vw);
  aspect-ratio: 9 / 17.5;
  border-radius: 42px;
  padding: 14px;
  background: linear-gradient(160deg, #2b3350, #141a2e 60%, #0b0f1d);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, .08),
    0 40px 90px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(0, 0, 0, .6);
  transform: rotate(-3deg);
}
.phone::before { /* Lautsprecher */
  content: "";
  position: absolute;
  top: 7px; left: 50%;
  width: 56px; height: 4px;
  margin-left: -28px;
  border-radius: 4px;
  background: #050811;
}
.screen {
  position: relative;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: #03050b;
}
.log {
  position: absolute;
  inset: 0;
  padding: 26px 18px;
  font-family: var(--f-mono);
  font-size: clamp(10.5px, 3.1vw, 12.5px);
  line-height: 1.7;
  color: #9fb4e6;
}
.log p { margin: 0; white-space: pre-wrap; }
.log .ok { color: var(--amber); }
.log .err { color: var(--error); }
.bar {
  margin: 10px 0 6px;
  height: 8px;
  border-radius: 8px;
  background: #18213d;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--signal);
  border-radius: 8px;
}
.bar.done i { background: var(--amber); }

.screen.glitch { animation: glitch .45s steps(2) 2; }
@keyframes glitch {
  0% { transform: translate(0, 0); filter: none; }
  25% { transform: translate(-6px, 2px); filter: hue-rotate(80deg) saturate(3); }
  50% { transform: translate(5px, -3px); filter: invert(1); }
  75% { transform: translate(-3px, 0); filter: contrast(3); }
  100% { transform: translate(0, 0); filter: none; }
}
.screen.dead .log { opacity: 0; transition: opacity .15s; }

.home {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity .7s ease, transform 1.2s cubic-bezier(.2, .8, .2, 1);
}
.home img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.home::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(8, 12, 28, .92));
}
.home .hello {
  position: absolute;
  left: 20px; right: 20px; bottom: 22px;
  z-index: 1;
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 80%;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
}
.home .hello small {
  display: block;
  margin-top: 8px;
  font-family: var(--f-body);
  font-weight: 500;
  font-stretch: 100%;
  font-size: 14px;
  letter-spacing: 0;
  color: #c9d3ee;
}
.hero.booted .home { opacity: 1; transform: scale(1); }
.hero.booted .log { opacity: 0; transition: opacity .4s; }

.replay {
  font: 500 15px var(--f-body);
  color: #c9d3ee;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 99px;
  padding: 8px 16px;
  cursor: pointer;
  opacity: 0;
  transition: opacity .4s, border-color .2s, color .2s;
}
.hero.booted .replay { opacity: 1; }
.replay:hover { color: #fff; border-color: var(--amber); }

/* ---------- Abschnitte ---------- */

section.block { padding: 88px 0 0; }
@media (min-width: 900px) { section.block { padding-top: 120px; } }

.block h2 {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 82%;
  font-variation-settings: "opsz" 72;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.018em;
  margin: 0 0 44px;
  max-width: 14em;
}

/* Zeitstrahl: links die Jahreszahl, rechts die Geschichte */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid;
  gap: 6px 40px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}
.timeline li:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 760px) {
  .timeline li { grid-template-columns: 220px 1fr; }
}
.timeline .year {
  font-family: var(--f-display);
  font-weight: 700;
  font-stretch: 78%;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--amber-deep);
}
@media (prefers-color-scheme: dark) { .timeline .year { color: var(--amber); } }
.timeline .year small { display: block; font-size: 17px; letter-spacing: 0; font-stretch: 100%; font-weight: 600; margin-top: 6px; }
.timeline h3 { margin: 0 0 6px; font-size: 22px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
.timeline p { margin: 0; max-width: 38em; color: var(--muted); }

/* Das eine laute Band: Zahlen als Satz */
.numbers {
  margin-top: 96px;
  background: var(--amber);
  color: var(--ink);
}
.numbers p {
  margin: 0;
  padding: 64px 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-stretch: 85%;
  font-variation-settings: "opsz" 60;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 19em;
}
.numbers b { font-weight: 800; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .12em; }

/* Was mich antreibt */
.drive {
  font-family: var(--f-display);
  font-weight: 600;
  font-stretch: 88%;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 24em;
  margin: 0;
}
.drive + p { margin: 20px 0 0; max-width: 34em; color: var(--muted); }

/* Projekte */
.project {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  align-items: start;
  padding: 26px 0;
  border-top: 1px solid var(--rule);
}
.project:last-child { border-bottom: 1px solid var(--rule); }
.project .icon { width: 72px; height: 72px; border-radius: 17px; display: block; }
.project .yt { background: #e62117; display: flex; align-items: center; justify-content: center; }
.project h3 { margin: 0; font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; }
.project .state { font-size: 15px; color: var(--muted); margin: 2px 0 8px; }
.project p { margin: 0 0 10px; max-width: 38em; }
.project .links a { margin-right: 18px; font-weight: 600; }

/* Kontakt */
.contact p { margin: 0 0 18px; color: var(--muted); max-width: 30em; }
.mail {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 80%;
  font-size: clamp(30px, 6.4vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  background-image: linear-gradient(var(--amber), var(--amber));
  background-size: 100% .12em;
  background-position: 0 92%;
  background-repeat: no-repeat;
  transition: background-size .3s;
  word-break: break-word;
}
.mail:hover { background-size: 100% .5em; }

footer {
  margin-top: 110px;
  padding: 22px 0 40px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
footer a { color: inherit; }

/* ---------- Rechtliche Seiten ---------- */

.subhead { background: var(--night); color: #eef1f8; }
.legal { max-width: 46em; padding-top: 56px; }
.legal h1 {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 80%;
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
.legal h2 { font-size: 21px; margin: 34px 0 6px; letter-spacing: -0.01em; }
.legal .muted { color: var(--muted); font-size: 16px; }

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