/* Josh Kalb – Portfolio
   Aufbau und Standarddesign „Neugierig“: weiß und schwarz, sehr große Grotesk (Archivo), kräftige Farben als Flächen und
   als dicke Unterstreichung unter den wichtigen Wörtern. Die drei anderen Designs stehen in themes.css und überschreiben
   vor allem die Variablen hier oben, dazu je eine eigene Besonderheit.
   Alles liegt lokal (Schriften in assets/fonts), nichts wird von Dritten geladen. */

@font-face { font-family: "Archivo"; src: url("assets/fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("assets/fonts/outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("assets/fonts/inter-tight.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("assets/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("assets/fonts/caveat.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  /* Palette */
  --violet: #6a3df5; --pink: #ff4d8d; --orange: #ff7a1a; --green: #12d18e; --yellow: #ffd60a; --blue: #2d7dff;
  --turq: var(--green); --peri: var(--blue); --lav: #cfc2ff;      /* Namen fürs Easter Egg */
  --ink: #0b0b0f;            /* Schrift */
  --cream: #ffffff;          /* Gegenfarbe zur Schrift (Schrift auf dunklen Flächen) */
  --bg: #ffffff;
  --surface: #f4f3ef;        /* ruhige Flächen: Schildchen, Karten */
  --muted: #5d5d68;
  --line: rgba(11, 11, 15, .14);
  --hot: var(--violet);      /* laute Farbe; per Terminal-Befehl „farbe“ änderbar */
  --on-hot: #ffffff;         /* Schrift auf der lauten Farbe */
  --cool: var(--yellow);     /* zweite Farbe */
  --c1: var(--violet); --c2: var(--pink); --c3: var(--orange); --c4: var(--green);   /* je Projekt und je Kachel */
  --mk: var(--hot);          /* Farbe der Unterstreichung, je Abschnitt anders */
  --band-bg: var(--ink); --band-fg: #ffffff;             /* Abschnitt Schwerpunkte */
  --contact-bg: var(--hot); --contact-fg: var(--on-hot);
  --footer-bg: var(--ink); --footer-fg: #ffffff;
  --nav-bg: rgba(255, 255, 255, .86);

  /* Schrift */
  --display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --hand: "Caveat", "Bradley Hand", cursive;
  --t-weight: 800; --t-case: none; --t-track: -.045em; --t-stretch: 100%;

  /* Form */
  --r: 28px; --r-btn: 999px;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* Zeichnung im Startbild */
  --st-desk: var(--yellow); --st-cap: var(--ink);
  --st-paper: #ffffff; --st-ink: #0b0b0f; --st-mark: var(--pink); --st-shadow: rgba(11, 11, 15, .22);
  --st-1: var(--violet); --st-2: var(--pink); --st-3: var(--blue); --st-4: #d9ceff; --st-5: var(--green);
  --st-line: 2.2;

  /* Terminal (immer dunkel) */
  --term-bg: #0f0f14; --term-bar: #191921; --term-line: #2a2a35; --term-dim: #8d8da0; --term-fg: #f3f2ee;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
html:has(dialog[open]) { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--hot); color: var(--on-hot); }
:focus-visible { outline: 3px solid var(--hot); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.dim { opacity: .6; }
.spacer { flex: 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 999px; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes rise { from { transform: translateY(105%); } }
@keyframes underline { to { background-size: 100% var(--mk-h, .13em); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 32px; padding: 20px var(--pad);
  transition: background .3s var(--ease), padding .3s var(--ease), color .3s, box-shadow .3s; }
.nav.scrolled { background: var(--nav-bg); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5);
  padding-top: 12px; padding-bottom: 12px; box-shadow: 0 1px 0 var(--line); }
.brand { font: 800 21px/1 var(--display); letter-spacing: -.035em; white-space: nowrap; }
.brand .cursor { display: inline-block; margin-left: 1px; color: var(--hot); animation: blink 1s steps(1) infinite; }
.nav-links { display: flex; gap: 32px; margin-left: auto; font-weight: 600; font-size: 15.5px; }
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--hot); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ---------- Knöpfe ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 28px; border: 2px solid transparent; border-radius: var(--r-btn);
  font: 700 16px/1 var(--sans); letter-spacing: -.01em; white-space: nowrap; transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s; }
.pill svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.pill:hover svg { transform: translateX(4px); }
.pill-dark { background: var(--ink); color: var(--cream); }
.pill-dark:hover { background: var(--hot); color: var(--on-hot); }
.pill-line { border-color: currentColor; }
.pill-line:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.nav-cta { height: 46px; padding: 0 22px; font-size: 15px; }

/* ---------- Startbild ---------- */
.hero { position: relative; min-height: 100svh; padding: 116px var(--pad) 52px; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, min(42vw, calc(100svh - 262px), 600px)); align-items: center; gap: clamp(28px, 5vw, 88px); isolation: isolate; }
.hero-copy { min-width: 0; }
.hero-title { margin: 0; font: var(--t-weight) clamp(44px, 7.2vw, 124px)/.95 var(--display); font-stretch: var(--t-stretch); letter-spacing: var(--t-track); text-transform: var(--t-case); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.04em; white-space: nowrap; }
.hero-title .line > span { display: inline-block; animation: rise 1s var(--ease) both; }
.hero-title .line:nth-child(2) > span { animation-delay: .08s; }
.hero-title .ch { display: inline-block; font-weight: var(--w, var(--t-weight)); transition: font-weight .35s var(--ease); }
.hero-title .ch.space { width: .22em; }
.hero-title .line > .mark { background: linear-gradient(var(--mk), var(--mk)) no-repeat 0 88% / 0% var(--mk-h, .13em); animation: rise 1s .08s var(--ease) both, underline .9s .85s var(--ease) forwards; }
.hero-lead { margin: clamp(22px, 3vh, 34px) 0 0; max-width: 30ch; font-size: clamp(19px, 1.55vw, 24px); line-height: 1.4; color: var(--muted); text-wrap: balance; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3.4vh, 36px); }

/* Die Frage, die das Design wechselt */
.ask { display: grid; justify-items: start; gap: 12px; margin-top: clamp(32px, 6vh, 64px); }
.ask-q { margin: 0; font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.ask-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-opts button { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 17px 0 14px; border: 1.5px solid var(--line); border-radius: var(--r-btn); background: none;
  font: 600 15px/1 var(--sans); transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.ask-opts button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dot, currentColor); }
.ask-opts [data-theme-pick="infos"] { --dot: #6a3df5; }
.ask-opts [data-theme-pick="design"] { --dot: #1463ff; }
.ask-opts [data-theme-pick="maker"] { --dot: #ff5b1f; }
.ask-opts [data-theme-pick="apps"] { --dot: linear-gradient(90deg, #2944c2 50%, #d3d541 50%); }   /* Kobalt und Chartreuse */
.ask-opts button:hover { border-color: var(--ink); transform: translateY(-2px); }
.ask-opts button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.ask-reply { margin: 0; min-height: 1.5em; font-size: 14.5px; color: var(--muted); }

/* ---------- Zeichnung (Werkstatt-Animation, anim.js) ---------- */
.hero-stage { position: relative; margin: 0; min-width: 0; border-radius: var(--r); background: var(--st-desk); color: var(--st-cap); }
.hero-stage > .stage { border-radius: var(--r) var(--r) 0 0; }
.stage { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; --display: "Outfit", "Futura", system-ui, sans-serif; }   /* Grafik immer in Outfit, die Breiten sind darauf vermessen */
.stage path, .stage rect, .stage circle, .stage ellipse { fill: none; stroke: none; }
.stage .ln { stroke: var(--st-ink); stroke-width: var(--st-line); stroke-linejoin: round; stroke-linecap: round; }
.stage .ln2 { stroke: var(--st-ink); stroke-width: 1.1; stroke-linecap: round; }
.stage .ln-cream { stroke: var(--st-paper); stroke-width: 1.6; stroke-linecap: round; }
.stage .ln-hot { stroke: var(--st-mark); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.stage .thin { stroke-width: 1.2; }
.stage .ln-trace { stroke: var(--st-1); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.stage .gd { stroke: var(--st-mark); stroke-width: 1; stroke-dasharray: 3 5; opacity: .8; }
.stage .nss { vector-effect: non-scaling-stroke; }
.stage .f-cream, .stage .glow { fill: var(--st-paper); }
.stage .f-hot { fill: var(--st-1); }
.stage .f-cool { fill: var(--st-2); }
.stage .f-peri { fill: var(--st-3); }
.stage .f-lav { fill: var(--st-4); }
.stage .f-mauve { fill: var(--st-5); }
.stage .f-ink { fill: var(--st-ink); }
.stage .sh { fill: var(--st-shadow); }
.stage .sh-cool { fill: var(--st-2); }
.stage .sh-hot { fill: var(--st-1); }
.stage text { fill: var(--st-ink); font-family: var(--mono); font-weight: 500; white-space: pre; }
.stage text.t-hand { font-family: var(--hand); font-weight: 600; paint-order: stroke; stroke: var(--st-paper); stroke-width: 5px; stroke-linejoin: round; }   /* Rand in Papierfarbe: Linien laufen nicht durch die Schrift */
.stage text.t-plain { stroke: none; }
.stage text.t-badge { fill: var(--st-badge-fg, var(--st-ink)); }   /* Ziffer im farbigen Kreis */
.stage text.t-bold { font-family: var(--display); font-weight: 850; letter-spacing: -.02em; }
.stage text.t-thin { font-family: var(--display); font-weight: 200; letter-spacing: -.01em; }
.stage text.t-cream, .stage tspan.t-cream { fill: var(--st-paper); }
.stage text.t-hot, .stage tspan.t-hot { fill: var(--st-mark); }
.stage text.t-cool, .stage tspan.t-cool { fill: var(--st-2); }
.stage tspan.t-lav { fill: var(--st-4); }
.stage text.t-faint { opacity: .4; }
.stage .cursor { transition: opacity .2s; pointer-events: none; }
.stage .cursor-ring { stroke: var(--st-ink); stroke-width: 1.4; }
.stage .cursor-cross { stroke: var(--st-ink); stroke-width: 1; }
.stage .cursor-dot { fill: var(--st-mark); }
.stage .cursor-tag { fill: var(--st-ink); }
.stage .cursor-text { fill: var(--st-paper); font-size: 10px; }
.stage .cursor-tagbox, .stage .hud-mark, .stage .hud-chapter, .stage .hud-bar { display: none; }   /* Koordinaten und Kapitel zeigt nur „Macherlaune“ */
.stage-defs { position: absolute; width: 0; height: 0; overflow: hidden; }   /* Muster für die Collage in „Aufgeräumt“ (themes.css) */

/* Prüfzeichen an der Ecke der Werkstatt: dreht sich langsam, führt zu den Projekten. Nur in „Macherlaune“ sichtbar (themes.css) */
.hero-badge { display: none; position: absolute; z-index: 3; top: -40px; right: -40px; width: 120px; aspect-ratio: 1; border-radius: 50%; transition: transform .45s var(--ease); }
.hero-badge svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hero-badge:hover { transform: scale(1.08) rotate(-8deg); }
.badge-bg { fill: var(--bg); stroke: var(--hot); stroke-width: 1; stroke-dasharray: 3 3; }
.badge-ring { fill: none; stroke: var(--hot); stroke-width: 6; stroke-dasharray: .8 3.2; }
.badge-text { fill: var(--hot); font: 600 9px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; white-space: pre; }
.badge-cross { fill: none; stroke: var(--hot); stroke-width: 1.2; stroke-linecap: round; }
.badge-spin { transform-box: view-box; transform-origin: 60px 60px; animation: spin 26s linear infinite; }
.crosshair { display: none; }   /* Fadenkreuz, nur in „Macherlaune“ (themes.css, main.js) */
.stage-cap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 14px; padding: 2px 22px 20px; }
.cap-name { display: flex; align-items: baseline; gap: 10px; min-width: 0; font: 600 13px/1.3 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap-name a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.cap-no { opacity: .6; }
.cap-status { flex: none; padding: 3px 8px; border-radius: 999px; background: var(--st-ink); color: var(--st-paper); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.cap-ctrl { display: flex; gap: 4px; }
.cap-btn { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: color-mix(in srgb, currentColor 14%, transparent); font: 600 15px/1 var(--mono);
  transition: background .2s; }
.cap-btn[data-pause] { font-size: 9px; }
.cap-all { display: inline-flex; gap: 7px; width: auto; padding: 0 12px 0 10px; border-radius: 999px; font-size: 12px; letter-spacing: .02em; }
.cap-all svg { width: 12px; height: 12px; fill: currentColor; }
.cap-all[aria-pressed="true"] { background: var(--st-ink); color: var(--st-paper); }
.cap-btn:hover { background: color-mix(in srgb, currentColor 28%, transparent); }
.cap-steps { grid-column: 1 / -1; display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cap-steps li { flex: 1; min-width: 0; }
.cap-steps button { display: block; width: 100%; padding: 9px 0 0; border: 0; border-top: 2px solid currentColor; background: none; text-align: left; font: 600 10.5px/1 var(--mono); text-transform: uppercase;
  letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .38; transition: opacity .25s; }
.cap-steps button.done { opacity: .7; }
.cap-steps button.on, .cap-steps button:hover { opacity: 1; }

/* Galerie: alle Projekte als Raster über der Zeichnung */
.stage-gallery { position: absolute; inset: 0 0 auto; aspect-ratio: 1; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: center; gap: clamp(8px, 2.2%, 14px);
  padding: clamp(12px, 4.4%, 28px); background: var(--st-desk); border-radius: inherit; }
.gal-item { display: grid; gap: 0; padding: 0 0 clamp(8px, 1.8vw, 12px); border: 0; border-radius: 16px; background: var(--gal-bg, rgba(255, 255, 255, .38)); color: var(--st-cap); text-align: left; overflow: hidden;
  animation: gal-in .5s var(--ease) both; animation-delay: calc(var(--i) * 55ms); transition: transform .3s var(--ease), background .3s; }
.gal-item:hover { transform: translateY(-4px); background: var(--gal-bg-hover, rgba(255, 255, 255, .7)); }
.gal-thumb { --st-line: 3.6; width: 100%; aspect-ratio: 1; }
.gal-name { display: block; padding: 0 clamp(8px, 1.6vw, 12px); font: 600 clamp(9.5px, .85vw, 12px)/1.3 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gal-no { margin-right: .7em; opacity: .55; }
@keyframes gal-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.gallery-open .cap-steps, .gallery-open [data-prev], .gallery-open [data-pause], .gallery-open [data-next] { visibility: hidden; }

/* Laufband: nur im Design „Bunt“ */
.ticker { display: none; }

/* ---------- Abschnitte ---------- */
main { counter-reset: sec; }
.section { padding: clamp(96px, 12vw, 176px) var(--pad) clamp(72px, 9vw, 128px); }
.section-head { display: grid; justify-items: start; gap: 24px; margin-bottom: clamp(44px, 6vw, 88px); }
.kicker { display: inline-flex; align-items: center; gap: 12px; margin: 0; font: 600 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.kicker span { display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 9px; border-radius: 999px; background: var(--ink); color: var(--cream); letter-spacing: .02em; }
.kicker-no::before { counter-increment: sec; content: counter(sec, decimal-leading-zero); }
.display { margin: 0; font: var(--t-weight) clamp(44px, 7.4vw, 128px)/.95 var(--display); font-stretch: var(--t-stretch); letter-spacing: var(--t-track); text-transform: var(--t-case); }
.display em { font-style: normal; background: linear-gradient(var(--mk), var(--mk)) no-repeat 0 88% / var(--u, 100%) var(--mk-h, .13em); -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size 1s .35s var(--ease); }
.reveal:not(.in) .display em { --u: 0%; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.tags li { padding: 6px 12px; border-radius: 999px; background: var(--surface); font: 500 12.5px/1.3 var(--mono); }

/* ---------- Projekte ---------- */
.projects { --mk: var(--pink); }
.project-list { border-top: 2px solid var(--ink); }
.project { --c: var(--c1); position: relative; display: grid; grid-template-columns: 56px 96px minmax(0, 1fr) auto; align-items: start; gap: 0 clamp(18px, 2.4vw, 36px);
  padding: clamp(32px, 4vw, 52px) 0; border-bottom: 2px solid var(--ink); }
.project:nth-child(2) { --c: var(--c2); }
.project:nth-child(3) { --c: var(--c3); }
.project:nth-child(4) { --c: var(--c4); }
.project-no { padding-top: 12px; font: 500 14px/1 var(--mono); color: var(--muted); }
.project-logo { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 26px; background: var(--ink); color: var(--cream); transition: transform .5s var(--ease), background .35s; }
.project-logo svg { width: 58px; height: 58px; }
.project-logo.app-icon { background: none; }
.project-logo.app-icon img { display: block; width: 100%; height: 100%; border-radius: 26px; }
.project-logo.ghost { background: none; box-shadow: inset 0 0 0 2px currentColor; color: inherit; font: 300 44px/1 var(--display); opacity: .45; }
.project.linked:hover .project-logo { background: var(--c); transform: rotate(-6deg) scale(1.05); }
.project.linked:hover .project-logo.app-icon { background: none; }
.project-body { min-width: 0; }
.project-kind { margin: 4px 0 12px; font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.project h3 { margin: 0; font: var(--t-weight) clamp(38px, 5.6vw, 88px)/.95 var(--display); font-stretch: var(--t-stretch); letter-spacing: var(--t-track); text-transform: var(--t-case); }
.project-link { background: linear-gradient(var(--c), var(--c)) no-repeat 0 88% / 0% .13em; transition: background-size .55s var(--ease); }
.project.linked:hover .project-link { background-size: 100% .13em; }
.project-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* ganze Karte klickbar */
.project-link:focus-visible { outline: none; }
.project:has(.project-link:focus-visible) { outline: 3px solid var(--hot); outline-offset: 4px; border-radius: 6px; }
.project-desc { margin: 20px 0 0; max-width: 56ch; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.5; }
.project-more { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 22px 0 0; font-weight: 600; font-size: 15.5px; }
.project-more a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; transition: text-decoration-color .2s; }
.project-more a:hover { text-decoration-color: var(--c); }
.project-meta { display: flex; align-items: center; gap: 18px; align-self: center; }
.project-url { font: 500 13px/1.3 var(--mono); color: var(--muted); }
.project-go { display: grid; place-items: center; width: 72px; height: 72px; border: 2px solid var(--ink); border-radius: 50%; transition: transform .5s var(--ease), background .3s, color .3s, border-color .3s; }
.project-go svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.project.linked:hover .project-go { transform: rotate(45deg); background: var(--c); border-color: var(--c); color: var(--ink); }
.project:not(.linked) .project-go { opacity: .2; }
.store-badge { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px; border: 1.5px dashed currentColor; border-radius: 999px; text-decoration: none !important; font-size: 14px; cursor: default; }
.store-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); animation: blink 1.4s steps(1) infinite; }
.store-badge.live { border-style: solid; border-color: var(--ink); background: var(--ink); color: var(--cream); cursor: pointer; }
.store-badge.live::before { animation: none; }
.project-soon h3, .project-soon .project-desc { opacity: .4; }
[data-theme="infos"] .project { isolation: isolate; }
[data-theme="infos"] .project::before { content: ""; position: absolute; z-index: -1; inset: -2px calc(var(--pad) * -1); background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
[data-theme="infos"] .project.linked:hover::before { transform: scaleX(1); }
[data-theme="infos"] .project.linked:hover { --muted: currentColor; }
[data-theme="infos"] .project.linked:nth-child(1):hover { color: #ffffff; }
[data-theme="infos"] .project.linked:hover .project-link { background-image: linear-gradient(currentColor, currentColor); }
[data-theme="infos"] .project.linked:hover .project-logo { background: var(--ink); color: #ffffff; }
[data-theme="infos"] .project.linked:hover .project-go { background: var(--ink); border-color: var(--ink); color: #ffffff; }
[data-theme="infos"] .project.linked:hover .tags li { background: color-mix(in srgb, currentColor 16%, transparent); }
.tags.wip li { background: none; box-shadow: inset 0 0 0 1.5px var(--line); }
.tags.wip li::before { content: "● "; color: var(--c); animation: blink 1.4s steps(1) infinite; }

/* ---------- Schwerpunkte ---------- */
.build { --mk: var(--yellow); margin: 0 clamp(8px, 1.1vw, 16px); border-radius: clamp(28px, 4vw, 56px); background: var(--band-bg); color: var(--band-fg);
  padding-left: calc(var(--pad) - clamp(8px, 1.1vw, 16px)); padding-right: calc(var(--pad) - clamp(8px, 1.1vw, 16px)); }
.build .kicker span { background: var(--band-fg); color: var(--band-bg); }
.build .display em { background-position: 0 90%; }
.build-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile { --c: var(--c1); --tc: #ffffff; position: relative; display: flex; flex-direction: column; min-height: 400px; padding: 28px; border-radius: var(--r); background: var(--c); color: var(--tc);
  transition: transform .5s var(--ease), background .4s, color .4s, box-shadow .4s; }
.tile:nth-child(2) { --c: var(--c2); --tc: var(--ink); }
.tile:nth-child(3) { --c: var(--c3); --tc: var(--ink); }
.tile:nth-child(4) { --c: var(--c4); --tc: var(--ink); }
.tile:hover, .tile.reveal.in:hover { transform: translateY(-10px) rotate(-1.2deg); }
.tile:nth-child(even):hover, .tile.reveal.in:nth-child(even):hover { transform: translateY(-10px) rotate(1.2deg); }
.tile-no { font: 600 13px/1 var(--mono); opacity: .75; }
.tile h3 { margin: auto 0 0; font: var(--t-weight) clamp(27px, 2.5vw, 40px)/1 var(--display); font-stretch: var(--t-stretch); letter-spacing: -.035em; text-transform: var(--t-case); overflow-wrap: anywhere; hyphens: auto; }
.tile p { margin: 14px 0 0; font-size: 16.5px; line-height: 1.45; }
.tile .tags { margin-top: 20px; }
.tile .tags li { background: none; box-shadow: inset 0 0 0 1.5px currentColor; }

/* ---------- Notizen (Blog, erscheint erst mit Beiträgen) ---------- */
.posts { --mk: var(--blue); }
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.post-card { position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 260px; padding: 28px; border-radius: var(--r); background: var(--surface); transition: transform .4s var(--ease), background .3s; }
.post-card:hover { transform: translateY(-6px); }
.post-date { margin: 0; font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.post-card h3 { margin: 0; font: var(--t-weight) clamp(24px, 2.2vw, 32px)/1.05 var(--display); font-stretch: var(--t-stretch); letter-spacing: -.03em; text-transform: var(--t-case); }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card p { margin: 0; font-size: 16.5px; line-height: 1.5; color: var(--muted); }
.post-more { margin-top: auto !important; font-weight: 600; color: var(--ink) !important; }

/* ---------- Kontakt ---------- */
.contact { --mk: var(--yellow); position: relative; margin: 16px clamp(8px, 1.1vw, 16px) clamp(8px, 1.1vw, 16px); border-radius: clamp(28px, 4vw, 56px); background: var(--contact-bg); color: var(--contact-fg);
  padding: clamp(80px, 11vw, 160px) calc(var(--pad) - clamp(8px, 1.1vw, 16px)) clamp(64px, 8vw, 112px); overflow: hidden; isolation: isolate; }
.contact .kicker span { background: var(--contact-fg); color: var(--contact-bg); }
.contact-title { margin: 28px 0 clamp(44px, 6vw, 80px); font: var(--t-weight) clamp(72px, 15.5vw, 280px)/.84 var(--display); font-stretch: var(--t-stretch); letter-spacing: -.055em; text-transform: var(--t-case); }
.contact-title .mark { background: linear-gradient(var(--mk), var(--mk)) no-repeat 0 90% / var(--u, 100%) .11em; transition: background-size 1.1s .4s var(--ease); }
.contact-title.reveal:not(.in) .mark { --u: 0%; }
.blink { animation: blink 1.2s steps(1) infinite; }
.socials { display: flex; flex-wrap: wrap; gap: 12px; }
.social { display: inline-flex; align-items: center; gap: 14px; height: 72px; padding: 0 10px 0 26px; border-radius: var(--r-btn); background: #ffffff; color: #0b0b0f; font: 700 18px/1 var(--sans); letter-spacing: -.01em;
  transition: transform .35s var(--ease), background .35s, color .35s; }
.social svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.social svg .fill, .social svg.solid { fill: currentColor; stroke: none; }
.social .arrow { display: grid; place-items: center; width: 52px; height: 52px; margin-left: 10px; border-radius: 50%; background: #0b0b0f; color: #ffffff; font-size: 21px; font-weight: 400; transition: transform .35s var(--ease), background .35s, color .35s; }
.social:hover { transform: translateY(-4px); background: #0b0b0f; color: #ffffff; }
.social:hover .arrow { transform: rotate(-45deg); background: var(--mk); color: #0b0b0f; }

/* ---------- Fuß: Extras (Playlist, Terminal, Designwahl) und Rechtliches ---------- */
.footer { background: var(--footer-bg); color: var(--footer-fg); padding: clamp(28px, 4vw, 48px) var(--pad) 28px; }
/* Fuß der Startseite: dezent ein Schwarzwald im Hintergrund (assets/img/wald.svg, halbtransparentes Weiß), Höhe bleibt gleich */
.footer:has(> .extras) { background: url("assets/img/wald.svg") center bottom / auto 100% repeat-x, var(--footer-bg); }
.extras { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: clamp(28px, 4vw, 44px); }
.player { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px 18px; padding: 18px 20px; border-radius: 22px; background: color-mix(in srgb, currentColor 8%, transparent); }
.record { position: relative; width: 56px; aspect-ratio: 1; border-radius: 50%; animation: spin 5s linear infinite; animation-play-state: paused;
  background: radial-gradient(circle, var(--hot) 0 24%, transparent 25%), repeating-radial-gradient(circle, #1c1c22 0 2px, #33333c 2px 4px); }
.record i { position: absolute; inset: 46%; border-radius: 50%; background: var(--footer-fg); }
.player:hover .record, .player.loaded .record { animation-play-state: running; }
.player-label { margin: 0 0 5px; font: 600 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; opacity: .6; }
.player h3 { margin: 0; font: 700 21px/1.1 var(--display); letter-spacing: -.02em; }
.player-play { height: 44px; padding: 0 22px; border: 0; background: var(--footer-fg); color: var(--footer-bg); font-size: 15px; }
.player-play:hover { background: var(--hot); color: var(--on-hot); }
.player-list { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 34px; padding: 0 14px; border: 1px solid color-mix(in srgb, currentColor 26%, transparent); border-radius: 999px; background: none; font: 500 13.5px/1 var(--sans); transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: currentColor; }
.chip[aria-pressed="true"] { background: var(--footer-fg); border-color: var(--footer-fg); color: var(--footer-bg); }
.player-note { grid-column: 1 / -1; margin: 0; font-size: 12.5px; line-height: 1.5; opacity: .6; }
.player-note a { text-decoration: underline; text-underline-offset: 3px; }
.player-frame { grid-column: 1 / -1; }
.player-frame iframe { display: block; width: 100%; height: 352px; border: 0; border-radius: 14px; }
.extras-side { display: grid; gap: 16px; justify-items: start; }
.extra-btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border: 0; border-radius: 14px; background: color-mix(in srgb, currentColor 8%, transparent); font: 500 14px/1 var(--mono);
  transition: background .2s; }
.extra-btn:hover { background: color-mix(in srgb, currentColor 16%, transparent); }
.extra-btn span { color: var(--cool); }
.extra-btn kbd { display: grid; place-items: center; min-width: 24px; height: 24px; margin-left: 4px; border-radius: 6px; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 35%, transparent); font: 600 11px/1 var(--mono); }
.design-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 14.5px; }
.design-label { margin-right: 8px; font: 600 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; opacity: .6; }
.design-switch button { padding: 6px 10px; border: 0; border-radius: 999px; background: none; opacity: .65; transition: opacity .2s, background .2s; }
.design-switch button:hover { opacity: 1; }
.design-switch button[aria-pressed="true"] { opacity: 1; background: color-mix(in srgb, currentColor 14%, transparent); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding-top: 22px; border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent); font: 500 13px/1.4 var(--mono); }
.footer-row a:hover, .footer-row a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Terminal (liegt über der Seite) ---------- */
.term-dialog { width: min(960px, calc(100vw - 28px)); max-width: none; margin: auto; padding: 0; border: 0; background: none; color: inherit; overflow: visible; }
.term-dialog::backdrop { background: rgba(8, 8, 12, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.term-dialog[open] { animation: term-in .4s var(--ease); }
@keyframes term-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.terminal { border-radius: 18px; overflow: hidden; background: var(--term-bg); color: var(--term-fg); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); font: 500 15px/1.65 var(--mono); }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; background: var(--term-bar); border-bottom: 1px solid var(--term-line); }
.term-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; }
.term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { flex: 1; text-align: center; font-size: 13px; color: var(--term-dim); }
.term-close { padding: 4px 9px; border: 1px solid var(--term-line); border-radius: 6px; background: none; color: var(--term-dim); font: 500 11px/1 var(--mono); }
.term-close:hover { color: var(--term-fg); border-color: var(--term-dim); }
.term-body { height: min(52vh, 420px); overflow-y: auto; padding: 22px 24px 6px; scrollbar-width: thin; }
.term-body p { margin: 0 0 4px; white-space: pre-wrap; word-break: break-word; }
.term-body a { color: #ffd60a; text-decoration: underline; text-underline-offset: 3px; }
.term-body .cmd { color: #ffffff; }
.term-body .col { display: inline-block; min-width: 34ch; padding-left: 2ch; }
.term-input { display: flex; gap: 12px; align-items: center; padding: 12px 24px 22px; }
.term-input input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: #ffffff; font: inherit; caret-color: #ffd60a; }
.ok { color: #3ee6a8; }
.path { color: #a895ff; }
.acc { color: #ff7ab0; }
@media (max-width: 640px) { .term-body p:has(> .col) { padding-left: 4ch; margin-bottom: 8px; } .term-body .col { display: block; min-width: 0; padding-left: 0; margin-left: -2ch; } }

/* ---------- Einblenden beim Scrollen ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section-head .display { animation: slide-in linear both; animation-timeline: view(); animation-range: entry 0% cover 36%; }   /* Überschrift fährt mit dem Scrollen ins Bild */
  }
}
@keyframes slide-in { from { transform: translateX(-10%); opacity: 0; } }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.in { opacity: 1; transform: none; }
.tile.reveal.in { transition-delay: 0s; }

/* ---------- Schmal ---------- */
@media (max-width: 1080px) {
  .build-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { min-height: 300px; }
  .project { grid-template-columns: 72px minmax(0, 1fr) auto; row-gap: 24px; }
  .project-no { display: none; }
  .project-logo { width: 72px; height: 72px; border-radius: 20px; }
  .project-logo.app-icon img { border-radius: 20px; }
  .project-logo svg { width: 44px; height: 44px; }
  .project-body { grid-column: 1 / -1; grid-row: 2; }
  .project-meta { grid-column: 3; grid-row: 1; }
  .project-go { width: 56px; height: 56px; }
  .project-go svg { width: 22px; height: 22px; }
  .extras { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  body { font-size: 17px; }
  .nav { gap: 14px; padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; height: 42px; padding: 0 18px; font-size: 14px; }
  .hero { min-height: 0; padding: 112px 20px 36px; grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero-title { font-size: clamp(44px, 14.2vw, 92px); }
  .hero-lead { max-width: 28ch; }
  .hero-cta .pill { flex: 1 1 auto; }
  .ask-opts button { height: 40px; padding: 0 14px 0 12px; font-size: 14.5px; }
  .stage-cap { padding: 0 16px 16px; }
  .hero-badge { width: 92px; top: -30px; right: -6px; }
  .cap-steps button { font-size: 9.5px; letter-spacing: .04em; }
  .section { padding-left: 20px; padding-right: 20px; }
  .build, .contact { padding-left: 16px; padding-right: 16px; }
  .build-grid { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 240px; }
  .project-url { display: none; }
  .contact-title { font-size: clamp(64px, 23vw, 150px); }
  .social { width: 100%; height: 64px; padding-left: 22px; font-size: 16.5px; }
  .social .arrow { margin-left: auto; width: 46px; height: 46px; }
  .footer { padding-left: 20px; padding-right: 20px; }
  .player { grid-template-columns: auto minmax(0, 1fr); }
  .player-play { grid-column: 1 / -1; }
  .term-body { height: min(48vh, 340px); padding: 16px; }
  .term-input { padding: 10px 16px 18px; }
  .terminal { font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-title .line > .mark { background-size: 100% var(--mk-h, .13em); }
}

/* ---------- Unterseiten: Impressum, Datenschutz, 404, Blogbeiträge ---------- */
.legal-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--pad); border-bottom: 1px solid var(--line); }
.legal-top .pill { height: 44px; padding: 0 20px; font-size: 14px; }
.legal-main { max-width: 1180px; padding: clamp(50px, 8vw, 100px) var(--pad) 90px; }
.legal .display { margin: 22px 0 48px; font-size: clamp(52px, 10vw, 136px); hyphens: manual; }
.legal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-bottom: 64px; }
.legal-card { padding: 24px 26px; border-radius: 22px; background: var(--surface); }
.legal-card:nth-child(2) { background: color-mix(in srgb, var(--yellow) 30%, #ffffff); }
.legal-card:nth-child(3) { background: color-mix(in srgb, var(--violet) 14%, #ffffff); }
.legal-card p { margin: 0 0 8px; line-height: 1.65; }
.legal-card a, .legal-text a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.legal-card h2, .legal-text h2 { margin: 0 0 12px; font: 700 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.legal-text { max-width: 72ch; }
.legal-text h2 { margin-top: 40px; }
.legal-text p { margin: 0 0 12px; line-height: 1.75; }
.legal-text ul { padding-left: 20px; line-height: 1.75; }
.legal code { padding: 1px 5px; border-radius: 4px; background: var(--surface); font: 500 .9em var(--mono); }
.legal .small { font-size: 14px; opacity: .75; }
.legal .footer { padding-top: 6px; }
.legal .footer-row { border-top: 0; }
.checks { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-weight: 700; }
.checks li::before { content: "✓ "; color: var(--hot); }
.todo { padding: 0 6px; background: var(--hot); color: var(--on-hot); font: 600 .85em var(--mono); }
/* Blogbeitrag: gleiche Seite, etwas mehr Luft für Lesetext */
.post-text { font-size: 19px; }
.post-text h2 { margin: 48px 0 14px; font: var(--t-weight) clamp(26px, 3vw, 38px)/1.1 var(--display); letter-spacing: -.03em; text-transform: none; }
.post-text img { display: block; max-width: 100%; height: auto; margin: 28px 0; border-radius: 18px; }
.post-text pre { overflow-x: auto; padding: 18px 20px; border-radius: 14px; background: var(--term-bg); color: var(--term-fg); font: 500 14.5px/1.6 var(--mono); }
@media (max-width: 820px) { .legal-top .pill { height: 40px; padding: 0 14px; font-size: 13px; } }

/* ---------- Easter Egg: 180! (immer in denselben Farben) ---------- */
.egg { --ink: #0b0b0f; --cream: #ffffff; position: fixed; inset: 0; z-index: 100; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; display: grid; place-items: center; overflow: hidden; cursor: pointer;
  background: rgba(11, 11, 15, .74); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.egg::backdrop { background: transparent; }
.egg svg { width: min(78vw, 64vh, 520px); height: auto; overflow: visible; }
.egg-board { transform-origin: 200px 200px; transform-box: view-box; }
.egg svg > g:not(.egg-board) { transform-box: view-box; }
.egg-dart-flight { transform-box: view-box; transform-origin: 0 0; }
.egg-text { font: 900 92px/1 "Outfit", system-ui, sans-serif; letter-spacing: -.04em; fill: var(--cream); stroke: var(--ink); stroke-width: 6px; paint-order: stroke; transform-origin: 200px 410px; transform-box: view-box; }
.egg-num { font: 700 14px/1 "JetBrains Mono", monospace; fill: var(--cream); text-anchor: middle; dominant-baseline: central; }
.egg-bit { position: absolute; top: 0; width: 10px; height: 16px; border-radius: 2px; pointer-events: none; }

/* ---------- Übergang zwischen den Designs (theme.js setzt den Mittelpunkt) ---------- */
::view-transition-group(root) { animation-duration: .95s; }
::view-transition-old(root) { animation: vt-out .95s cubic-bezier(.7, 0, .2, 1) both; transform-origin: var(--vt-x, 50%) var(--vt-y, 50%); }
::view-transition-new(root) { animation: vt-in .95s cubic-bezier(.7, 0, .2, 1) both; }
@keyframes vt-in {
  from { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 50%)); }
  to { clip-path: circle(150vmax at var(--vt-x, 50%) var(--vt-y, 50%)); }
}
@keyframes vt-out { to { transform: scale(.94); filter: brightness(.6); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

html[lang="en"][data-theme="maker"] .hero-copy::before { content: "N 48.574292°  E 8.348010°  —  Black Forest"; }
html[lang="en"][data-theme="maker"] .project-desc::before { content: "Description"; }

/* A quiet language choice alongside the footer links. */
.footer .language-switch { display: inline-flex; align-items: center; gap: 4px; }
.footer .language-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; min-height: 32px; color: inherit; opacity: .65; text-decoration: none; }
.footer .language-switch a[aria-current] { font-weight: 700; opacity: 1; }
.footer .language-switch a:hover, .footer .language-switch a:focus-visible { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* Keep the footer compact while the prepared Spotify player is inactive. */
.extras.extras-no-player { grid-template-columns: minmax(0, 1fr); }
.extras-no-player .extras-side { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
