/* Matteo Lehnert, Portfolio V3: MatteOS
   Aqua-Look nach tommybiglow.com, Bedienung mit einem Finder-Fenster. */

@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }

/* ---------------------------------------------------------------- Designsystem */

:root {
  /* Farben: eine Akzentfarbe (Aqua-Blau), sonst Grau */
  --accent: #1f6fe0;
  --accent-hi: #3b8af0;
  --ink: #111;
  --text: #2b2b2b;
  --text-2: #565656;      /* 7.0:1 auf --paper */
  --paper: #ececec;
  --paper-hi: #f7f7f7;
  --rule: rgba(0, 0, 0, .13);
  --bg: #0c0f13;          /* dunkle Flächen: Schemas, Porträt, Terminal */
  --fg: #ebe8e0;
  --fg-2: #b7b3a8;
  --muted: #858278;
  --warn: #e8664f;
  --field-line: rgba(255, 255, 255, .2);
  --field-node: rgba(255, 255, 255, .55);
  --field-hot: #ffffff;

  /* Schrift */
  --sans: "Lucida Grande", "Lucida Sans Unicode", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;

  /* Abstände: 4er-Raster */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;

  /* Radien: innen = aussen minus Abstand */
  --r-win: 10px;
  --r-frame: 8px;
  --pad-frame: 4px;
  --r-inner: calc(var(--r-frame) - var(--pad-frame));

  --bar-h: 24px;
  --dock-h: 54px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.7, 0, .16, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  overflow: hidden;
  background: #0b5ea8;
  color: var(--text);
  font: 400 14px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--accent); }
img, canvas, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.defs { position: absolute; width: 0; height: 0; }
.only-touch { display: none; }
@media (hover: none), (pointer: coarse) { .only-fine { display: none; } }
.arr { display: inline-block; width: 9px; height: 9px; }

/* ---------------------------------------------------------------- Einstieg */

.boot {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-content: center; justify-items: center; gap: var(--s5);
  background:
    radial-gradient(60% 50% at 50% 50%, rgba(255, 255, 255, .22) 0%, transparent 70%),
    linear-gradient(160deg, #7dd3fc 0%, #38bdf8 25%, #0ea5e9 55%, #0284c7 80%, #0369a1 100%);
}
.booted .boot, .no-js .boot { display: none; }
.rig { display: grid; justify-items: center; will-change: transform; }
.crt {
  position: relative; display: block; width: min(520px, 82vw, 62vh);
  padding: 0; border: 0; background: none;
  filter: drop-shadow(0 24px 48px rgba(2, 100, 163, .45));
}
.crt img { width: 100%; height: auto; }
.crt-screen {
  position: absolute; left: 0; top: 0; width: 70%; height: 52%;
  transform-origin: 0 0; padding: 6% 7%; overflow: hidden;
  border-radius: 2.4% / 3%;
  background: radial-gradient(120% 100% at 50% 38%, #142233, #050a12);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .9);
  text-align: left;
}
.crt-shine {
  position: absolute; left: 11%; top: 13%; width: 78%; height: 58%; z-index: 1; pointer-events: none;
  border-radius: 2%; background: linear-gradient(155deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 38%);
}
.crt:hover .crt-screen { box-shadow: inset 0 0 40px rgba(0, 0, 0, .9), 0 0 26px rgba(160, 225, 255, .5); }
.boot-log { display: block; white-space: pre-wrap; color: #9fe3ff; font: 400 clamp(9px, 1.4vw, 13px)/1.6 var(--mono); text-shadow: 0 0 8px rgba(46, 168, 236, .7); }
.boot-hint {
  margin: 0; color: rgba(255, 255, 255, .85); font-size: 13px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; text-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  animation: pulse 2.2s ease-in-out infinite;
}
.boot.is-on .boot-hint { visibility: hidden; }
@keyframes pulse { 50% { opacity: .5; } }
.boot-skip {
  position: absolute; right: max(var(--s3), env(safe-area-inset-right)); bottom: max(var(--s3), env(safe-area-inset-bottom));
  min-height: 44px; padding: 0 var(--s3); border: 0; background: none;
  color: rgba(255, 255, 255, .85); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
}
.boot-skip:hover { color: #fff; }

/* ---------------------------------------------------------------- Desktop */

.desk { position: fixed; inset: 0; background: radial-gradient(120% 90% at 22% 18%, #8fc7f4 0%, #4d9ce6 30%, #2a6fcb 62%, #174a9c 100%); }
.wall { position: absolute; inset: 0; width: 100%; height: 100%; }

.menubar {
  position: absolute; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; height: var(--bar-h); padding: 0 var(--s2);
  padding-left: max(var(--s2), env(safe-area-inset-left)); padding-right: max(var(--s3), env(safe-area-inset-right));
  background: linear-gradient(rgba(255, 255, 255, .95), rgba(240, 240, 240, .95) 45%, rgba(220, 220, 220, .95) 50%, rgba(232, 232, 232, .95));
  border-bottom: 1px solid rgba(0, 0, 0, .3); box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  color: var(--ink); font-size: 14px;
}
.menu-wrap { position: relative; }
.menu-btn { height: calc(var(--bar-h) - 1px); padding: 0 10px; border: 0; background: none; }
.menu-logo { font-weight: 700; }
.menu-btn:hover, .menu-btn[aria-expanded="true"] { background: var(--accent); color: #fff; }
.menu {
  position: absolute; left: 0; top: 100%; min-width: 200px; padding: var(--s1) 0;
  background: rgba(255, 255, 255, .96); border: 1px solid rgba(0, 0, 0, .3); border-top: 0; border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.menu[hidden] { display: none; }
.menu > * { display: block; width: 100%; padding: 3px var(--s4); border: 0; background: none; color: var(--ink); text-align: left; text-decoration: none; font-size: 14px; }
.menu > *:hover, .menu > *:focus-visible { background: var(--accent); color: #fff; outline: 0; }
.menubar-right { margin-left: auto; font-size: 13px; font-variant-numeric: tabular-nums; }

/* Symbole rechts wie auf dem Mac-Desktop */
.icons {
  position: absolute; z-index: 2;
  top: calc(var(--bar-h) + var(--s4)); right: max(var(--s3), env(safe-area-inset-right)); bottom: calc(var(--dock-h) + var(--s4));
  display: flex; flex-direction: column; flex-wrap: wrap-reverse; align-content: flex-start; gap: var(--s1);
}
.icon {
  display: grid; justify-items: center; gap: var(--s1);
  width: 96px; padding: var(--s2) var(--s1); border: 0; border-radius: 6px; background: none;
  color: #fff; font-size: 12px; font-weight: 500; line-height: 1.25; text-align: center;
}
.icon svg { width: 52px; height: 52px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.icon span { padding: 1px 6px; border-radius: 4px; text-shadow: 0 1px 2px rgba(0, 0, 0, .8), 0 0 2px rgba(0, 0, 0, .8); }
.icon:hover svg { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)) brightness(1.06); }
.icon.is-selected { background: rgba(0, 0, 0, .22); }
.icon.is-selected span { background: var(--accent); text-shadow: none; }

/* Dock: feste Programme, Trenner, offene Projekt-Fenster */
.dock {
  position: absolute; left: 50%; bottom: 0; z-index: 60; transform: translateX(-50%);
  display: flex; align-items: flex-end; gap: 4px; max-width: calc(100% - 16px);
  padding: 4px var(--s2) calc(4px + env(safe-area-inset-bottom));
  background: linear-gradient(rgba(255, 255, 255, .6), rgba(255, 255, 255, .28));
  border: 1px solid rgba(255, 255, 255, .65); border-bottom: 0; border-radius: 12px 12px 0 0;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.dock-wins { display: flex; align-items: flex-end; gap: 4px; }
.dock-sep { align-self: stretch; width: 1px; margin: 4px 4px 6px; background: rgba(0, 0, 0, .25); box-shadow: 1px 0 rgba(255, 255, 255, .7); }
.dock:not(.has-wins) .dock-sep { display: none; }
.dock-app, .mini {
  position: relative; display: grid; place-items: center; flex: none; width: 46px; height: 46px; padding: 0;
  border: 0; border-radius: 8px; background: none; color: #111; text-decoration: none;
}
.dock-app > svg {
  width: 38px; height: 38px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3));
  transition: transform .18s var(--ease); transform-origin: 50% 100%;
}
.dock-app:hover > svg, .dock-app:focus-visible > svg { transform: translateY(-3px) scale(1.14); }
.dock-app:focus-visible, .mini:focus-visible { outline: 0; background: rgba(255, 255, 255, .4); }
/* Punkt unter offenen Programmen, wie im Dock von Mac OS X */
.dock-app::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
  background: #1b1b1b; box-shadow: 0 0 2px rgba(255, 255, 255, .9); opacity: 0;
}
.dock-app.is-open::after { opacity: 1; }
/* Minimierte Fenster: kleine Vorschau mit Abzeichen des Programms */
.mini { width: 62px; overflow: visible; }
.mini-win {
  display: flex; flex-direction: column; width: 54px; height: 40px; overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .45); border-radius: 3px; background: var(--paper);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .35); transition: transform .18s var(--ease); transform-origin: 50% 100%;
}
.mini-bar { display: flex; gap: 2px; align-items: center; flex: none; height: 7px; padding: 0 3px; background: linear-gradient(#f4f4f4, #c8c8c8); border-bottom: 1px solid #999; }
.mini-bar i { width: 3px; height: 3px; border-radius: 50%; background: #ff5c5c; }
.mini-bar i + i { background: #ffc95c; }
.mini-bar i + i + i { background: #5cd65c; }
.mini-body { flex: 1; display: grid; place-items: center; min-height: 0; }
.mini-body img { width: 100%; height: 100%; object-fit: cover; }
.mini-body svg { width: 22px; height: 22px; }
.mini-badge { position: absolute; right: 2px; bottom: 1px; width: 18px; height: 18px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .4)); }
.mini:hover .mini-win, .mini:focus-visible .mini-win { transform: translateY(-3px) scale(1.1); }
.tip {
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px);
  padding: 3px 10px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  background: rgba(30, 30, 30, .82); color: #fff; font-size: 12px; font-weight: 500; opacity: 0;
  transition: opacity .12s, transform .12s;
}
.dock-app:hover .tip, .mini:hover .tip, .dock-app:focus-visible .tip, .mini:focus-visible .tip { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- Fenster */

.stage {
  position: absolute; z-index: 20; pointer-events: none;
  top: calc(var(--bar-h) + var(--s2)); bottom: calc(var(--dock-h) + var(--s2));
  left: max(var(--s2), env(safe-area-inset-left)); right: 124px;
}
.views { display: none; }
.win {
  position: absolute; pointer-events: auto; display: flex; flex-direction: column;
  width: min(var(--w, 680px), 100%); max-height: 100%;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(255, 255, 255, .7) 1px 2px);
  border: 1px solid rgba(0, 0, 0, .42); border-radius: var(--r-win); overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .32), inset 0 1px rgba(255, 255, 255, .8);
}
.win.is-active { box-shadow: 0 18px 44px rgba(0, 0, 0, .45), inset 0 1px rgba(255, 255, 255, .8); }
.win:not(.is-active) .win-bar { background: linear-gradient(#f4f4f4, #e6e6e6 48%, #dcdcdc 52%, #d6d6d6); }
.win:not(.is-active) .win-title { color: #777; }
.win:not(.is-active) .light { filter: saturate(0) brightness(1.1); }
.win.is-max { left: 0 !important; top: 0 !important; width: 100%; height: 100%; max-height: none !important; border-radius: 4px; }
.win.is-dragging { opacity: .96; }
.win[hidden] { display: none; }
.win-bar {
  position: relative; flex: none; display: flex; align-items: center; gap: var(--s3);
  height: 30px; padding: 0 var(--s3);
  background: linear-gradient(#f8f8f8, #d8d8d8 48%, #c4c4c4 52%, #b8b8b8);
  border-bottom: 1px solid #888; text-shadow: 0 1px rgba(255, 255, 255, .8);
}
.lights { display: flex; gap: 8px; }
.light {
  position: relative; width: 13px; height: 13px; padding: 0; border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .8), inset 0 -1px 1px rgba(0, 0, 0, .3), 0 1px 1px rgba(0, 0, 0, .2);
}
.light::after { content: ""; position: absolute; inset: -9px -4px; }
.light::before { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(0, 0, 0, .6); font: 700 9px/1 var(--sans); opacity: 0; }
.lights:hover .light::before { opacity: 1; }
.light-close::before { content: "\00d7"; }
.light-min::before { content: "\2013"; }
.light-max::before { content: "+"; }
.light-close { border: 1px solid #b30000; background: radial-gradient(circle at 30% 30%, #ff8a8a, #ff5c5c 40%, #e00000); }
.light-min { border: 1px solid #b37e00; background: radial-gradient(circle at 30% 30%, #ffdf8a, #ffc95c 40%, #e09f00); }
.light-max { border: 1px solid #00b300; background: radial-gradient(circle at 30% 30%, #8aff8a, #5cff5c 40%, #00e000); }
.light:active { filter: brightness(.85); }
.win-title { position: absolute; left: 50%; transform: translateX(-50%); max-width: 50%; margin: 0; overflow: hidden; color: #000; font-size: 13px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }

.win-body { position: relative; flex: 1; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.win.is-max .view:not(.term) { max-width: 980px; margin: 0 auto; }
.view { display: block; padding: var(--s5) var(--s5) var(--s6); }

/* Text */
.h1 { margin: 0 0 var(--s3); color: var(--ink); font-size: clamp(28px, 3.2vw, 36px); line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
.h2 { margin: var(--s5) 0 var(--s2); color: var(--ink); font-size: 24px; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.view p { max-width: 65ch; margin: 0 0 var(--s3); text-wrap: pretty; }
.lead { color: var(--ink); font-size: 16px; }
.meta { color: var(--text-2); font-size: 13px; }
.tech { color: var(--text-2); font-size: 13px; }
.tech::before { content: "Technik: "; color: var(--ink); font-weight: 600; }
.tech[data-label]::before { content: attr(data-label) ": "; }
.h3 { margin: var(--s5) 0 var(--s2); color: var(--ink); font-size: 16px; }
.points b { color: var(--ink); }
.caption { margin-top: var(--s2) !important; color: var(--text-2); font-size: 12px; }

/* Fotos und Pläne */
.photo, .gallery figure { margin: 0 0 var(--s2); }
.photo img, .gallery img {
  width: 100%; height: auto; border-radius: var(--r-frame); background: #ddd;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3), 0 0 0 1px rgba(0, 0, 0, .15);
}
.photo-white img, .gallery .photo-white img { background: #fff; padding: var(--s2); }
.photo figcaption, .gallery figcaption { margin-top: var(--s1); color: var(--text-2); font-size: 12px; }
.photo + .h2, .gallery + .h2 { margin-top: var(--s4); }
.photo + .photo, .points + .photo { margin-top: var(--s4); }
.gallery { display: grid; grid-template-columns: 1fr 1fr .62fr; gap: var(--s3); align-items: start; margin-bottom: var(--s2); }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; }
.gallery .tall img { aspect-ratio: 3 / 4; }
.gallery-2 { grid-template-columns: 1fr 1fr; margin: var(--s4) 0; }
.gallery-2 img { aspect-ratio: auto; object-fit: contain; }
/* Galerien mit gleicher Höhe pro Reihe */
.gallery-va { grid-template-columns: 2fr 1fr 1fr; }
.gallery-va figure + figure img { object-position: 50% 8%; }
.gallery-va img, .gallery-va figure:first-child img { aspect-ratio: auto; height: 220px; object-fit: cover; }
.gallery-pva { grid-template-columns: repeat(4, 1fr); }
.gallery-pva img { aspect-ratio: 1; }
.gallery-pair { grid-template-columns: 1.6fr 1fr; margin: var(--s4) 0; }
.gallery-pair img { aspect-ratio: auto; height: 260px; object-fit: cover; }
.photo-wide img { aspect-ratio: 16 / 9; object-fit: cover; }
.split { display: grid; grid-template-columns: 220px 1fr; gap: var(--s4); align-items: start; }
.split .photo img { aspect-ratio: 3 / 4; object-fit: cover; }
.video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--r-frame); background: #111; box-shadow: 0 1px 3px rgba(0, 0, 0, .3), 0 0 0 1px rgba(0, 0, 0, .15); }
/* einfache Liste für kleinere Projekte */
.list { max-width: 65ch; margin: var(--s3) 0 var(--s4); padding-left: 1.2em; }
.list li { margin-bottom: 6px; padding-left: 2px; text-wrap: pretty; }
.list li::marker { color: var(--accent); }
/* Module.txt: Textdatei-Look */
.doc .mods { margin: calc(var(--s1) * -1) 0 var(--s2) !important; color: var(--accent); font: 600 12px/1.4 var(--mono, monospace); letter-spacing: .02em; }
.view .pane + .caption { margin-bottom: var(--s4) !important; }
.credit { margin-top: var(--s5) !important; padding-top: var(--s3); border-top: 1px solid var(--rule); color: var(--text-2); font-size: 12px; }
.row { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5) !important; }

/* Knöpfe: nur der wichtigste ist blau */
.btn {
  display: inline-flex; align-items: center; min-height: 30px; padding: 4px 18px;
  border: 1px solid #888; border-radius: 999px; color: #000; text-decoration: none; font-size: 13px; font-weight: 500;
  background: linear-gradient(#fafafa, #e0e0e0 48%, #cacaca 52%, #e8e8e8);
  box-shadow: inset 0 1px rgba(255, 255, 255, .9), 0 1px 3px rgba(0, 0, 0, .15);
}
.btn-primary {
  color: #fff; border-color: #0b55b8; text-shadow: 0 -1px 1px rgba(0, 0, 0, .3);
  background: linear-gradient(#a8d4fb, #4b98f2 40%, #1f6fe0 60%, #3a8cf0);
  box-shadow: inset 0 1px rgba(255, 255, 255, .7), 0 0 8px rgba(31, 111, 224, .35), 0 1px 3px rgba(0, 0, 0, .2);
}
.btn:hover { filter: brightness(1.05); }
.btn:active { filter: brightness(.88); }

/* Ordner-Ansicht */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s3); margin: 0; padding: 0; list-style: none; }
.grid button {
  display: grid; justify-items: center; gap: 2px; width: 100%; padding: var(--s3) var(--s2);
  border: 0; border-radius: var(--r-frame); background: none; text-align: center;
}
.grid button:hover { background: rgba(31, 111, 224, .08); }
.grid button:focus-visible { outline: 0; background: rgba(31, 111, 224, .14); }
.thumb {
  display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 10; margin-bottom: var(--s2);
  padding: var(--pad-frame); border-radius: var(--r-frame); background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25), 0 0 0 1px rgba(0, 0, 0, .12);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; border-radius: var(--r-inner); }
.thumb-icon { background: linear-gradient(#fdfdfd, #ececec); }
.thumb-icon svg { width: 56px; height: 56px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }
.name { color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.3; }
.grid li { display: flex; }
.grid button { align-content: start; }
.sub { color: var(--text-2); font-size: 12px; }

/* Ladezustand: Fläche ist da, bevor das Bild kommt */
.thumb img, .shot img { background: linear-gradient(100deg, #e4e4e4 30%, #f2f2f2 50%, #e4e4e4 70%) 0 0 / 300% 100%; animation: loading 1.4s linear infinite; }
.thumb img.is-loaded, .shot img.is-loaded { animation: none; background: none; }
@keyframes loading { to { background-position: -150% 0; } }

/* Über mich */
.about { display: grid; grid-template-columns: 240px 1fr; gap: var(--s5); align-items: start; }
.portrait { margin: 0; }
.portrait-frame { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r-frame); box-shadow: 0 1px 3px rgba(0, 0, 0, .3), 0 0 0 1px rgba(0, 0, 0, .15); touch-action: pan-y; }
.portrait-frame.is-touching { touch-action: none; }
.portrait-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.portrait-fallback { display: none; }
.portrait.no-webgl .portrait-canvas { display: none; }
.portrait.no-webgl .portrait-fallback, .no-js .portrait-fallback { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.no-js .portrait-canvas { display: none; }
.cap { display: flex; justify-content: space-between; gap: var(--s2); margin-top: var(--s2); color: var(--text-2); font-size: 11px; }
.facts { margin: var(--s4) 0 0; border-top: 1px solid var(--rule); }
.facts div { display: flex; justify-content: space-between; gap: var(--s3); padding: 7px 0 6px; border-bottom: 1px solid var(--rule); font-size: 13px; }
.facts dt { color: var(--text-2); }
.facts dd { margin: 0; color: var(--ink); font-weight: 600; }

/* Projekte */
.pane { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-frame); background: radial-gradient(80% 70% at 50% 44%, #171b21, var(--bg)); box-shadow: 0 1px 3px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .3); }
.scene { width: 100%; height: 100%; }
.points { max-width: 65ch; margin: var(--s4) 0; padding: 0; list-style: none; counter-reset: p; border-top: 1px solid var(--rule); }
.points li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid var(--rule); counter-increment: p; text-wrap: pretty; }
.points li::before { content: counter(p); position: absolute; left: 2px; top: 10px; color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }

.browser { padding: var(--pad-frame); border-radius: var(--r-frame); background: linear-gradient(#f4f4f4, #d6d6d6); box-shadow: 0 1px 3px rgba(0, 0, 0, .3), 0 0 0 1px rgba(0, 0, 0, .25); }
.browser-bar { display: flex; align-items: center; gap: var(--s1); padding: 0 0 var(--pad-frame); font-size: 12px; }
.browser-bar button { width: 28px; height: 22px; padding: 0 0 2px; border: 1px solid #888; border-radius: 4px; background: linear-gradient(#fafafa, #e0e0e0 48%, #cacaca 52%, #e8e8e8); font-size: 16px; line-height: 1; }
.browser-bar .url { flex: 1; min-width: 0; padding: 2px var(--s2); border: 1px solid #999; border-radius: 4px; background: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .15); }
.shot { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-inner); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }

/* Werdegang */
.log { margin: 0; padding: 0; list-style: none; }
.log li { position: relative; padding: 0 0 var(--s5) var(--s5); border-left: 1px solid #9a9a9a; }
.log li:last-child { padding-bottom: var(--s2); }
.log li::before { content: ""; position: absolute; left: -6px; top: 3px; width: 11px; height: 11px; border-radius: 50%; border: 1px solid #0b55b8; background: radial-gradient(circle at 30% 30%, #a8d4fb, #4b98f2 45%, #1f6fe0); }
.log h3 { margin: 0 0 2px; color: var(--ink); font-size: 17px; }
.log .when { margin: 0; color: var(--text-2); font-size: 12px; }
.log .where { margin: 0 0 var(--s2); color: var(--accent); font-size: 13px; }
.log p:last-child { margin: 0; }
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid #9a9a9a; }
.skills h3 { margin: 0 0 var(--s1); color: var(--ink); font-size: 13px; }
.skills ul { margin: 0; padding: 0; list-style: none; }
.skills li { padding: 5px 0 4px; border-bottom: 1px solid var(--rule); font-size: 13px; }

/* Kontakt */
.mail { display: block; margin: var(--s1) 0 var(--s2); color: var(--ink); font-size: clamp(22px, 3vw, 28px); font-weight: 700; letter-spacing: -.01em; text-decoration: none; overflow-wrap: anywhere; }
.mail:hover { color: var(--accent); }
.links { margin: var(--s5) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.links a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 var(--s1); border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.links a:hover { background: var(--accent); color: #fff; }

/* Terminal */
.term { min-height: 340px; background: var(--bg); color: #cfe9f7; font: 400 13px/1.6 var(--mono); cursor: text; }
.win:has(.term) .win-body { background: var(--bg); }
.term-out { white-space: pre-wrap; overflow-wrap: anywhere; }
.term-out .cmd { color: #fff; }
.term-out .dim { color: #8aa0ae; }
.term-out .ok { color: #7dff9c; }
.term-line { display: flex; gap: var(--s2); }
.term-line label { color: #7dff9c; white-space: nowrap; }
.term-line input { flex: 1; min-width: 0; padding: 0; border: 0; outline: 0; background: none; color: #fff; font: inherit; caret-color: #7dff9c; }

/* ---------------------------------------------------------------- Handy */

@media (max-width: 720px) {
  :root { --dock-h: 50px; }
  .menu-links { display: none; }
  .icons { left: var(--s2); right: var(--s2); bottom: auto; flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .icon { width: calc(33.33% - var(--s1)); min-height: 88px; }
  .stage { inset: calc(var(--bar-h) + 6px) 6px calc(var(--dock-h) + 6px) 6px; }
  .win { left: 0 !important; top: 0 !important; width: 100%; height: 100%; max-height: none !important; }
  .win-bar { height: 44px; }
  .light { width: 18px; height: 18px; }
  .light-max { display: none; }
  .win-title { position: static; transform: none; flex: 1; max-width: none; padding-right: 50px; text-align: center; }
  .view { padding: var(--s4) var(--s4) var(--s6); }
  .about { grid-template-columns: 1fr; }
  .portrait { max-width: 220px; }
  .skills { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .gallery:not(.gallery-va):not(.gallery-pva), .gallery-2 { grid-template-columns: 1fr; }
  .gallery .tall { display: none; }
  .term-line input { font-size: 16px; }
  .btn { min-height: 44px; }
  .dock { gap: 2px; padding-left: 4px; padding-right: 4px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .dock-app { width: 42px; height: 44px; }
  .dock-app > svg { width: 34px; height: 34px; }
  .mini { width: 52px; }
  .mini-win { width: 46px; height: 34px; }
  .tip { display: none; }
  .gallery-va { grid-template-columns: 1fr 1fr; }
  .gallery-va figure:first-child { grid-column: 1 / -1; }
  .gallery-va img { height: 200px; }
  .gallery-pva { grid-template-columns: 1fr 1fr; }
  .gallery-pair { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split .photo { max-width: 260px; }
}

/* Ohne JavaScript: alle Inhalte untereinander */
.no-js body { overflow: auto; }
.no-js .desk { position: static; padding: var(--s4); }
.no-js .wall, .no-js .icons, .no-js .dock, .no-js [data-view="terminal"] { display: none; }
.no-js .views { display: block; max-width: 820px; margin: 0 auto; background: var(--paper); border-radius: var(--r-win); }
.no-js .view { display: block; border-bottom: 1px solid var(--rule); }

@media (prefers-reduced-motion: reduce) {
  .boot-hint, .thumb img, .shot img { animation: none; }
  .dock-app > svg, .mini-win, .tip { transition: none; }
}
