/* ============================================================
   Farben & Grundwerte
   ============================================================ */
:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #eeece6;
  --ink: #121216;
  --muted: #5f5e66;
  --line: rgba(18, 18, 22, .1);
  --accent: #3d5afe;
  --accent-2: #b14bff;
  --ok: #138a52;
  --err: #c62828;
  --grad: linear-gradient(120deg, var(--accent), var(--accent-2));
  --radius: 22px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -12px rgba(0,0,0,.12);
  --nav-h: 72px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0c10; --surface: #15151b; --surface-2: #1c1c24; --ink: #f1f0ec; --muted: #a09fa8;
    --line: rgba(255, 255, 255, .1); --accent: #6d82ff; --accent-2: #c77dff; --ok: #3ccf8e; --err: #ff6b6b;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -16px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0c10; --surface: #15151b; --surface-2: #1c1c24; --ink: #f1f0ec; --muted: #a09fa8;
  --line: rgba(255, 255, 255, .1); --accent: #6d82ff; --accent-2: #c77dff; --ok: #3ccf8e; --err: #ff6b6b;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -16px rgba(0,0,0,.6);
  color-scheme: dark;
}

/* ============================================================
   Basis
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px; line-height: 1.6;
  background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s, color .3s;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }
h2 { font-size: clamp(30px, 4.5vw, 48px); }
h3 { font-size: 20px; letter-spacing: -.01em; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--grad); border-radius: 2px; }
.lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); max-width: 680px; margin-top: 18px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px; border: 0;
  font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background-color .25s;
  will-change: transform;
}
.btn span[aria-hidden] { transition: transform .25s; }
.btn:hover span[aria-hidden] { transform: translateX(4px); }
.btn-primary { background: var(--ink); color: var(--bg); box-shadow: 0 10px 30px -10px rgba(61, 90, 254, .6); }
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.link-arrow { font-weight: 700; text-decoration: none; white-space: nowrap; }
.link-arrow span { display: inline-block; transition: transform .25s; }
.link-arrow:hover span { transform: translateX(4px); }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.logo-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--grad); color: #fff; font-size: 15px;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  position: relative; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted);
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: ''; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--accent);
}
.nav-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color .2s, transform .3s;
}
.icon-btn:hover { background: var(--surface-2); }
[data-theme-toggle]:active { transform: rotate(40deg); }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; }
}
.burger { display: none; }
.burger span { position: absolute; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s; }
.burger span:first-child { transform: translateY(-4px); }
.burger span:last-child { transform: translateY(4px); }
.nav.open .burger span:first-child { transform: rotate(45deg); }
.nav.open .burger span:last-child { transform: rotate(-45deg); }

@media (max-width: 760px) {
  .logo-text { display: none; }
  .burger { display: grid; position: relative; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; gap: 0;
    padding: 12px 20px 24px; background: var(--bg); box-shadow: 0 20px 30px -20px rgba(0,0,0,.3);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s;
  }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.open { background: var(--bg); }
  .nav-links a { font-size: 22px; font-weight: 800; color: var(--ink); padding: 12px 0; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-links a:hover { background: none; }
  .nav-links a[aria-current="page"]::after { left: auto; right: 4px; top: 50%; bottom: auto; margin-top: -2.5px; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; align-items: center;
  margin-top: calc(var(--nav-h) * -1); /* läuft hinter der Navigation durch */
  padding: calc(var(--nav-h) + 40px) 0 100px;
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none;
  animation: drift 16s ease-in-out infinite alternate;
}
.b1 { width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; background: var(--accent); top: -10%; right: -8%; }
.b2 { width: 34vw; height: 34vw; max-width: 460px; max-height: 460px; background: var(--accent-2); bottom: -6%; right: 22%; animation-delay: -8s; }
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-6vw, 4vh) scale(1.12); }
  100% { transform: translate(3vw, -3vh) scale(.95); }
}
.hero::after { /* feines Korn */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}
.hero-inner { position: relative; z-index: 1; }
.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: color-mix(in srgb, var(--surface) 70%, transparent); box-shadow: inset 0 0 0 1px var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  margin-bottom: 28px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.hello { font-size: clamp(18px, 2.4vw, 24px); color: var(--muted); font-weight: 600; }
.hero-title {
  font-size: clamp(56px, 13vw, 168px); line-height: .9; letter-spacing: -.055em; font-weight: 900;
  margin: 6px 0 14px;
}
.hero-role { font-size: clamp(24px, 4vw, 44px); font-weight: 800; letter-spacing: -.03em; min-height: 1.3em; }
.typed { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.caret { display: inline-block; width: 3px; height: .95em; margin-left: 4px; vertical-align: -.1em; background: var(--accent); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-text { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 560px; margin-top: 20px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px;
  border-radius: 20px; box-shadow: inset 0 0 0 2px var(--line); z-index: 1;
}
.scroll-hint span { position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ink); animation: scroll 1.8s infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
.hero-404 .hero-title { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: clamp(110px, 26vw, 300px); }

/* ============================================================
   Laufband
   ============================================================ */
.marquee {
  overflow: hidden; padding: 22px 0; border-block: 1px solid var(--line);
  background: var(--surface);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; gap: 28px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-size: clamp(20px, 3vw, 30px); font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.marquee .star { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   Abschnitte
   ============================================================ */
.section { padding: clamp(70px, 10vw, 120px) 0; }
.section-tight { padding: clamp(30px, 5vw, 60px) 0 clamp(60px, 8vw, 100px); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 44px; }
.page-head { padding: clamp(50px, 9vw, 110px) 0 10px; }
.page-head h1 { font-size: clamp(44px, 8vw, 96px); letter-spacing: -.05em; }
.notice { margin-top: 18px; padding: 12px 16px; border-radius: 12px; background: var(--surface-2); color: var(--muted); display: inline-block; }

/* Projektkarten */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card {
  --mx: 50%; --my: 0%;
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  text-decoration: none; isolation: isolate;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
}
.card::after { /* Lichtkegel, der der Maus folgt */
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--c) 18%, transparent), transparent 60%);
}
.card:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent), 0 24px 50px -20px color-mix(in srgb, var(--c) 55%, transparent); }
.card:hover::after { opacity: 1; }
.thumb {
  position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.35), transparent 45%),
    linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #000));
}
.thumb::before { /* Muster */
  content: ''; position: absolute; inset: 0; opacity: .18;
  background-image: radial-gradient(rgba(255,255,255,.9) 1px, transparent 1.5px); background-size: 18px 18px;
}
.thumb span { position: relative; font-size: 64px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.25)); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.card:hover .thumb span { transform: scale(1.18) rotate(-8deg); }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.card h3 { font-size: 22px; }
.card p { color: var(--muted); font-size: 15.5px; flex: 1; }
.more { margin-top: 6px; font-weight: 700; font-size: 15px; color: var(--c); }
.more span { display: inline-block; transition: transform .25s; }
.card:hover .more span { transform: translateX(5px); }

/* Filter */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px;
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .2s, color .2s, box-shadow .2s, transform .2s;
}
.chip-btn { border: 0; cursor: pointer; }
.chip-btn:hover, a.chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip-btn.active { background: var(--ink); color: var(--bg); box-shadow: none; }

/* Zahlen */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.stat-num { display: block; font-size: clamp(48px, 8vw, 92px); font-weight: 900; letter-spacing: -.05em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-weight: 600; }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr; gap: 36px; } }

/* Leistungen */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: start; }
.services { display: grid; gap: 14px; }
.service { display: flex; gap: 18px; padding: 22px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform .3s; }
.service:hover { transform: translateX(6px); }
.service-icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--surface-2); font-size: 24px; }
.service p { color: var(--muted); font-size: 15.5px; margin-top: 4px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 30px; } }

/* Über mich */
.about { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start; }
.avatar {
  position: relative; aspect-ratio: 1; border-radius: 32px; overflow: hidden;
  display: grid; place-items: center; background: var(--grad);
  box-shadow: 0 30px 60px -25px color-mix(in srgb, var(--accent) 70%, transparent);
}
.avatar::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.4), transparent 50%); }
.avatar span { position: relative; font-size: 110px; font-weight: 900; letter-spacing: -.05em; color: #fff; }
.about-text p { font-size: 19px; margin-bottom: 18px; }
.about-text p:first-child { font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; letter-spacing: -.02em; line-height: 1.35; }
.facts { list-style: none; padding: 0; margin-top: 26px; display: grid; gap: 10px; }
.facts li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.facts a { color: var(--accent); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 32px; } .avatar { max-width: 260px; } }

.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.skill-group { padding: 26px; border-radius: var(--radius); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.skill-group h3 { margin-bottom: 16px; }

.timeline { list-style: none; padding: 0; position: relative; max-width: 820px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), var(--accent-2), transparent); }
.timeline li { position: relative; display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 0 0 38px 40px; }
.timeline li::before { content: ''; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 4px var(--accent); }
.tl-year { font-weight: 800; color: var(--accent); }
.timeline p { color: var(--muted); margin-top: 4px; }
@media (max-width: 600px) { .timeline li { grid-template-columns: 1fr; gap: 4px; } }

/* Projekt-Detail */
.project-hero {
  position: relative; overflow: hidden; padding: clamp(40px, 7vw, 90px) 0 clamp(40px, 6vw, 70px);
  background:
    radial-gradient(800px 400px at 85% 0%, color-mix(in srgb, var(--c) 35%, transparent), transparent 70%),
    var(--bg);
}
.back { display: inline-flex; gap: 8px; font-weight: 700; text-decoration: none; color: var(--muted); margin-bottom: 36px; }
.back:hover { color: var(--ink); }
.project-emoji { display: block; font-size: 72px; margin-bottom: 14px; }
.project-hero h1 { font-size: clamp(42px, 7.5vw, 88px); letter-spacing: -.05em; }
.project-meta { display: flex; flex-wrap: wrap; gap: 14px 48px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.project-meta dt { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.project-meta dd { margin: 4px 0 0; font-weight: 700; }
.prose { max-width: 760px; }
.prose p { font-size: 19px; margin-bottom: 20px; }
.prose h2 { font-size: 24px; margin: 36px 0 12px; }
.prose a:not(.btn) { color: var(--accent); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pager-link { display: flex; flex-direction: column; gap: 4px; padding: 24px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; transition: transform .3s, box-shadow .3s; }
.pager-link:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1.5px var(--ink); }
.pager-link span { color: var(--muted); font-size: 14px; font-weight: 600; }
.pager-link strong { font-size: 20px; letter-spacing: -.02em; }
.pager-link.next { text-align: right; }
@media (max-width: 600px) { .pager { grid-template-columns: 1fr; } .pager-link.next { text-align: left; } }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.contact-form { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 0;
  font: inherit; font-size: 16px; color: var(--ink); background: var(--bg);
  box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--muted); margin: 6px 0 24px; cursor: pointer; }
.check input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--accent); }
.check a { color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 16px 18px; border-radius: 14px; margin-bottom: 22px; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.alert-ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.alert-ok p { color: var(--ink); }
.alert-err { background: color-mix(in srgb, var(--err) 12%, transparent); color: var(--err); }
.contact-side { display: grid; gap: 16px; }
.side-card { padding: 26px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.side-card h3 { margin-bottom: 12px; }
.big-mail { display: block; font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; letter-spacing: -.02em; word-break: break-all; text-decoration: none; margin-bottom: 8px; }
.big-mail:hover { color: var(--accent); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ============================================================
   Wetter
   ============================================================ */
.wx-search { display: flex; gap: 10px; margin-top: 30px; max-width: 640px; flex-wrap: wrap; }
.wx-input { position: relative; flex: 1 1 280px; display: flex; align-items: center; }
.wx-input > svg { position: absolute; left: 18px; color: var(--muted); pointer-events: none; }
.wx-input input {
  width: 100%; padding: 16px 18px 16px 50px; border: 0; border-radius: 999px;
  font: inherit; font-size: 17px; color: var(--ink); background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow); transition: box-shadow .2s;
}
.wx-input input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent); }
.wx-suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 20; list-style: none; padding: 6px;
  background: var(--surface); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line), 0 24px 50px -20px rgba(0,0,0,.35);
}
.wx-suggest li { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 12px; cursor: pointer; }
.wx-suggest li span { font-size: 14px; color: var(--muted); }
.wx-suggest li:hover, .wx-suggest li[aria-selected="true"] { background: var(--surface-2); }
.wx-suggest .wx-none { cursor: default; color: var(--muted); }
.wx-locate { background: var(--surface); }
.wx-locate.busy svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.wx { display: grid; gap: 20px; }
.wx-hero {
  position: relative; overflow: hidden; border-radius: 28px; min-height: 380px; color: #fff;
  display: flex; align-items: flex-end;
  background: linear-gradient(165deg, #2f80ff, #69b7ff 60%, #a8d8ff);
  box-shadow: 0 30px 60px -30px rgba(20, 40, 90, .55);
  transition: background .8s;
}
.wx-hero[data-scene="partly"][data-day="1"] { background: linear-gradient(165deg, #3f7fd6, #7fb0e6 60%, #b9d6f2); }
.wx-hero[data-scene="cloudy"][data-day="1"] { background: linear-gradient(165deg, #5f6d84, #8d9bb0 60%, #b9c3d1); }
.wx-hero[data-scene="fog"]                  { background: linear-gradient(165deg, #7f8b98, #a9b3bd 60%, #cfd5db); }
.wx-hero[data-scene="rain"][data-day="1"]   { background: linear-gradient(165deg, #34445e, #556885 60%, #7a8ca6); }
.wx-hero[data-scene="snow"][data-day="1"]   { background: linear-gradient(165deg, #7d96b8, #a9bdd6 60%, #dbe5f1); }
.wx-hero[data-scene="storm"]                { background: linear-gradient(165deg, #171b28, #2c3348 60%, #474f69); }
.wx-hero[data-day="0"]                      { background: linear-gradient(165deg, #070b24, #172152 60%, #2c3a75); }
.wx-hero[data-day="0"][data-scene="cloudy"] { background: linear-gradient(165deg, #151a26, #2a3243 60%, #414b60); }
.wx-hero[data-day="0"][data-scene="rain"]   { background: linear-gradient(165deg, #0f1522, #223048 60%, #34445f); }
.wx-hero[data-day="0"][data-scene="snow"]   { background: linear-gradient(165deg, #222c45, #3d4c6e 60%, #5d6f92); }
.wx-sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.wx-hero-inner { position: relative; padding: clamp(24px, 4vw, 44px); width: 100%; text-shadow: 0 2px 16px rgba(0,0,0,.25); transition: opacity .3s; }
.wx.loading .wx-hero-inner { opacity: .55; }
.wx-place h2 { font-size: clamp(28px, 4vw, 40px); }
.wx-sub { opacity: .85; font-weight: 600; margin-top: 4px; }
.wx-now { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.wx-icon { font-size: clamp(56px, 9vw, 92px); line-height: 1; filter: drop-shadow(0 8px 18px rgba(0,0,0,.25)); }
.wx-temp { font-size: clamp(84px, 16vw, 160px); font-weight: 900; letter-spacing: -.06em; line-height: .9; font-variant-numeric: tabular-nums; }
.wx-desc { font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; margin-top: 6px; }
.wx-range { font-weight: 600; opacity: .9; }
.wx-joke { margin-top: 14px; display: inline-block; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-weight: 600; font-size: 15px; text-shadow: none; }
.wx-error { padding: 14px 18px; border-radius: 16px; background: color-mix(in srgb, var(--err) 12%, transparent); color: var(--err); font-weight: 600; }

.wx-panel { padding: 22px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.wx-panel h3 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.wx-hourly { overflow-x: auto; margin: 0 -8px; padding: 0 8px 6px; scrollbar-width: thin; }
.wx-hourly svg { display: block; max-width: none; }
.wx-hourly text { text-anchor: middle; fill: var(--ink); font-family: inherit; }
.wx-t { font-size: 14px; font-weight: 800; }
.wx-e { font-size: 20px; }
.wx-r { font-size: 11px; font-weight: 700; fill: #3b8bff !important; }
.wx-h { font-size: 12px; fill: var(--muted) !important; font-weight: 600; }

.wx-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .wx-grid { grid-template-columns: 1fr; } }
.wx-days { list-style: none; padding: 0; }
.wx-days li { display: grid; grid-template-columns: 52px 34px 58px 36px 1fr 36px; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.wx-days li:first-child { border-top: 0; }
.wd-name { font-weight: 800; }
.wd-icon { font-size: 22px; text-align: center; }
.wd-rain { font-size: 12.5px; font-weight: 700; color: #3b8bff; }
.wd-min { color: var(--muted); text-align: right; font-weight: 600; }
.wd-max { font-weight: 800; }
.wd-bar { position: relative; height: 6px; border-radius: 3px; background: var(--surface-2); }
.wd-bar i { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, #4cb8ff, #ffc24b, #ff7a3d); }

.wx-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.wx-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform .3s; }
.wx-card:hover { transform: translateY(-3px); }
.wc-label { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.wc-value { font-size: 30px; font-weight: 900; letter-spacing: -.03em; line-height: 1.1; }
.wc-value small { font-size: 15px; font-weight: 700; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.wc-hint { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.wd-arrow { display: inline-block; font-weight: 900; color: var(--accent); }
.wd-meter { flex: 1; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.wd-meter i { display: block; height: 100%; background: var(--grad); border-radius: 3px; }
.wx-credit { font-size: 13px; color: var(--muted); text-align: center; }
.wx-credit a { color: inherit; }

/* ============================================================
   Footer
   ============================================================ */
.footer { padding: clamp(60px, 9vw, 110px) 0 30px; background: var(--ink); color: var(--bg); }
.footer a { text-decoration: none; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 50px; border-bottom: 1px solid color-mix(in srgb, var(--bg) 15%, transparent); }
.footer-big { font-size: clamp(36px, 6vw, 72px); font-weight: 900; letter-spacing: -.05em; line-height: 1; margin-bottom: 28px; }
.footer .btn-primary { background: var(--bg); color: var(--ink); }
.footer .btn-primary:hover { background: var(--accent); color: #fff; }
.footer-cols { display: flex; gap: 60px; }
.footer-cols h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; opacity: .55; margin-bottom: 14px; }
.footer-cols a { display: block; padding: 4px 0; font-weight: 600; opacity: .85; transition: opacity .2s, transform .2s; }
.footer-cols a:hover { opacity: 1; transform: translateX(4px); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 14px; opacity: .65; }
.footer-bottom a:hover { text-decoration: underline; }

/* ============================================================
   🥚 Easter Eggs
   ============================================================ */
.term-btn {
  margin-left: 8px; padding: 2px 7px; border: 0; border-radius: 6px; cursor: pointer;
  font: 700 12px ui-monospace, Consolas, monospace; color: inherit; background: color-mix(in srgb, var(--bg) 14%, transparent);
  opacity: .7; transition: opacity .2s, background-color .2s;
}
.term-btn:hover { opacity: 1; background: var(--accent); color: #fff; }

.egg-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 1000; max-width: calc(100% - 32px);
  padding: 12px 20px; border-radius: 14px; background: var(--ink); color: var(--bg);
  font-weight: 700; box-shadow: 0 20px 40px -15px rgba(0,0,0,.5);
  transform: translate(-50%, 140%); opacity: 0; transition: transform .4s cubic-bezier(.2,1.4,.4,1), opacity .3s; pointer-events: none;
}
.egg-toast.show { transform: translate(-50%, 0); opacity: 1; }

/* Button in der Navigation */
.cmd-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 8px 0 14px; margin-right: 4px;
  border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink);
  background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .2s, transform .2s;
}
.cmd-btn:hover { box-shadow: inset 0 0 0 1.5px var(--accent); transform: translateY(-1px); }
.cmd-btn-icon { font-family: ui-monospace, Consolas, monospace; color: var(--accent); font-weight: 900; }
kbd {
  display: inline-block; padding: 2px 7px; border-radius: 6px; font: 600 11.5px/1.5 ui-monospace, Consolas, monospace;
  color: var(--muted); background: var(--surface-2); box-shadow: inset 0 -1px 0 var(--line);
}
@media (max-width: 760px) { .cmd-btn { padding: 0 14px; } .cmd-btn kbd { display: none; } }
@media (max-width: 420px) { .cmd-btn-text { display: none; } .cmd-btn { width: 42px; padding: 0; justify-content: center; } }

/* Die Befehlsleiste */
.egg-term { position: fixed; inset: 0; z-index: 999; visibility: hidden; }
.egg-term.open { visibility: visible; }
.cmd-backdrop { position: absolute; inset: 0; background: rgba(8, 8, 14, .45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .2s; }
.egg-term.open .cmd-backdrop { opacity: 1; }
.cmd-box {
  position: absolute; left: 50%; top: 10vh; width: min(640px, calc(100% - 24px)); max-height: 78vh;
  display: flex; flex-direction: column; overflow: hidden; border-radius: 20px;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 0 0 1px var(--line), 0 40px 90px -20px rgba(0,0,0,.55);
  transform: translate(-50%, -12px) scale(.97); opacity: 0;
  transition: transform .25s cubic-bezier(.2,.9,.3,1.2), opacity .2s;
}
.egg-term.open .cmd-box { transform: translate(-50%, 0); opacity: 1; }
.cmd-in { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); cursor: text; }
.cmd-ps { font: 900 22px/1 ui-monospace, Consolas, monospace; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cmd-in input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ink); font: inherit; font-size: 18px; }
.cmd-in input::placeholder { color: var(--muted); }

/* Ausgabe der Befehle (Konsolen-Look) */
.term-out {
  max-height: 34vh; overflow-y: auto; margin: 12px 12px 0; padding: 12px 14px; border-radius: 12px;
  background: #0d0d14; color: #d7ffe0; white-space: pre-wrap; word-break: break-word;
  font: 13.5px/1.55 ui-monospace, "Cascadia Code", Consolas, "Courier New", monospace;
}
.term-out:empty { display: none; }
.tl.prompt { color: #7aa2ff; }
.tl.ok { color: #4dff88; }
.tl.err { color: #ff7b7b; }
.tl.accent { color: #d6a8ff; }
.tl.dim { color: #8a8f99; }

.cmd-list { flex: 1; overflow-y: auto; padding: 8px; }
.cmd-group { padding: 12px 10px 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cmd-item {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px;
  background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.cmd-item[aria-selected="true"] { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent); }
.cmd-icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--bg); font-size: 19px; }
.cmd-text { display: flex; flex-direction: column; min-width: 0; }
.cmd-text strong { font-size: 15px; }
.cmd-text code { font: 12.5px ui-monospace, Consolas, monospace; color: var(--muted); }
.cmd-empty { padding: 18px 12px; color: var(--muted); }
.cmd-foot { display: flex; gap: 16px; flex-wrap: wrap; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.cmd-foot kbd { margin-right: 2px; }
.cmd-secret { margin-left: auto; }
@media (max-width: 600px) { .cmd-box { top: 12px; max-height: calc(100% - 24px); } .cmd-foot span:not(.cmd-secret) { display: none; } .cmd-secret { margin: 0; } }

.egg-matrix { position: fixed; inset: 0; z-index: 998; pointer-events: none; opacity: 0; transition: opacity .8s; }
.egg-matrix.show { opacity: .92; }
.egg-bit { position: fixed; z-index: 1001; font-size: 28px; pointer-events: none; }
.egg-flash { position: fixed; inset: 0; z-index: 1002; pointer-events: none; background: #fff; animation: eggflash 1.4s ease-out forwards; }
@keyframes eggflash { from { opacity: .9; } to { opacity: 0; } }
.egg-shake { animation: eggshake .7s cubic-bezier(.36,.07,.19,.97); }
@keyframes eggshake {
  10%, 90% { transform: translate(-2px, 1px); } 20%, 80% { transform: translate(5px, -2px); }
  30%, 50%, 70% { transform: translate(-9px, 3px) rotate(-.4deg); } 40%, 60% { transform: translate(9px, -3px) rotate(.4deg); }
}
.egg-party main, .egg-party .footer, .egg-party .nav { animation: egghue 6s linear infinite; }
.egg-party .hero-title, .egg-party .page-head h1, .egg-party .logo-mark { animation: eggbounce .6s ease-in-out infinite alternate; }
@keyframes egghue { to { filter: hue-rotate(360deg); } }
@keyframes eggbounce { from { transform: translateY(0) rotate(-1deg); } to { transform: translateY(-8px) rotate(1deg); } }
.egg-saver { position: fixed; inset: 0; z-index: 997; background: #000; cursor: none; }
.egg-saver-logo { position: absolute; left: 0; top: 0; padding: 14px 26px; border: 4px solid currentColor; border-radius: 16px; font: 900 40px/1 system-ui, sans-serif; letter-spacing: -.04em; white-space: nowrap; }

/* ============================================================
   Einblenden beim Scrollen (nur wenn JS läuft)
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

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