/* Über mich, Impressum, Datenschutz — auf den Tokens und Komponenten des gemeinsamen Kits (assets/kit/kit.css).
   Die Farben unten verweisen auf --ppk-*, damit helles und dunkles Design ohne weitere Regeln funktionieren. */
:root{--ppk-accent:#1d5bd0;--ppk-accent-ink:#ffffff;--ppk-tint:#e4edff}
:root[data-theme="dark"]{--ppk-accent:#6ea8ff;--ppk-accent-ink:#071a38;--ppk-tint:#12294d}
@media (prefers-color-scheme:dark){:root:not([data-theme]){--ppk-accent:#6ea8ff;--ppk-accent-ink:#071a38;--ppk-tint:#12294d}}
:root {
  --ink: var(--ppk-ink);
  --muted: var(--ppk-muted);
  --blue: var(--ppk-accent);
  --blue-ink: var(--ppk-accent);
  --blue-soft: var(--ppk-tint);
  --blue-line: var(--ppk-line);
  --line: var(--ppk-line);
  --card-line: var(--ppk-line);
  --card-text: var(--ppk-muted);
  --surface: var(--ppk-panel);
  --bg: var(--ppk-bg);
  --focus: var(--ppk-focus);
  --on-blue: var(--ppk-accent-ink);
  --shadow-card: var(--ppk-shadow);
  --shadow-photo: var(--ppk-shadow);
  --shadow-lift: 0 6px 14px #276ce624;
  --card-line-hover: var(--ppk-accent);
  --icon-size: 64px;
  --lift-s: -1px;
  --lift-m: -2px;
  --motion: 180ms ease;
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-xs: 8px;
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 22px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --space-hairline: 2px;
  --space-0: 4px;
  --space-inline: 6px;
  --space-control-y: 10px;
  --space-control-x: 12px;
  --space-control-x-narrow: 10px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 56px;
  /* PeakMP3-Demo: Farben der Dialoge wie im Original (PeakMP3/website/peak.css) */
  --demo-max: 420px;
  --demo-backdrop: #21170d55;
  --demo-dialog-line: #8c887b;
  --demo-dialog-bg: #f3f1e6;
  --demo-dialog-ink: #111;
  --demo-button-line: #4b4b40;
  --demo-button-bg: #e9e7d8;
  --demo-input-bg: #faf1d8;
  --demo-limit-bg: #ddd6bf;
  --demo-hot-focus: #ff8a20;
  --demo-font: Tahoma, sans-serif;
  --space-demo-input: 5px;
  --radius-demo: 5px;
}
﻿
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body { overflow-wrap: break-word; }

/* Headings are never split by syllables (hyphenation off in all three languages). */
h1, h2, h3, .ab-name, .ab-role { hyphens: none; -webkit-hyphens: none; word-break: normal; }
h1, h2 { text-wrap: balance; }

a { color: inherit; text-underline-offset: 4px; }

/* ---------- studio hero (dark blue scene as in the catalogue banner) ---------- */
.ab-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 12px 0 0;
  --ab-pad-b: clamp(70px, 8vw, 96px);
  --ab-pad-x: clamp(20px, 5vw, 56px);
  padding: clamp(28px, 5vw, 56px) var(--ab-pad-x) var(--ab-pad-b);
  border-radius: 26px;
  background: #062048;
  color: #f7fbff;
}
.ab-scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 85% at 14% 35%, rgba(34, 112, 245, 0.85) 0, rgba(34, 112, 245, 0) 62%),
    radial-gradient(ellipse 50% 70% at 88% 0, rgba(0, 160, 235, 0.55), transparent 66%),
    linear-gradient(135deg, #041a3f, #0a3a86 55%, #062048);
}
.ab-ray {
  position: absolute;
  top: -35%;
  height: 170%;
  transform: rotate(24deg);
  background: linear-gradient(180deg, rgba(130, 205, 255, 0), rgba(130, 205, 255, 0.2) 45%, rgba(130, 205, 255, 0));
}
.ab-ray-1 { left: 40%; width: 7%; }
.ab-ray-2 { left: 55%; width: 12%; opacity: 0.7; }
.ab-ray-3 { left: 76%; width: 5%; }
.ab-glass {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(56px, 13%, 84px);
  border-top: 1px solid rgba(165, 210, 255, 0.28);
  background: linear-gradient(180deg, rgba(8, 28, 66, 0.1), rgba(3, 12, 32, 0.85));
  box-shadow: inset 0 14px 30px -18px rgba(120, 190, 255, 0.45);
}
/* The portrait column takes what the headline leaves: "Anwendungsentwicklung" (about 11.3 x font size wide) must not break, so the column is
   42vw - 64px up to ~1120px, 96vw - 673px above (headline capped at 44px, card capped at 1144px), at most 480px. */
.ab-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(220px, max(42vw - 64px, 96vw - 673px), 480px); gap: clamp(24px, 4vw, 48px); align-items: center; }
/* Portrait: transparent cut-out standing in the scene, no frame. Its bottom sits on the hero's lower edge (negative margin eats the hero padding),
   where overflow clips it and the facts strip (z-index 1, overlapping the hero) covers the cut. */
.ab-portrait {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 900 / 916;
  justify-self: end;
  align-self: end;
  margin-bottom: calc(-1 * var(--ab-pad-b));
  /* Stand further to the right: the figure leaves the column and takes the hero's right padding, down to 14px from the edge
     (the right sleeve is the widest point of the cut-out and ends at its edge; overflow hidden on .ab-hero clips nothing visible). */
  margin-right: calc(-1 * (var(--ab-pad-x) - 14px));
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: none;
}.ab-hero-copy { min-width: 0; max-width: 680px; }
.ab-hero-head { display: contents; }   /* name, role, headline: a group only in the 701-1000px layout below */
.ab-name { margin: 0 0 var(--space-0); font-size: 22px; line-height: 1.25; font-weight: 750; letter-spacing: -0.02em; }
.ab-role { margin: 0 0 var(--space-2); color: #5cc8ff; font-size: 14px; font-weight: 700; letter-spacing: 0.02em; }
.ab-hero h1 {
  margin: 0 0 var(--space-2);
  color: #fff;
  font-size: clamp(28px, 3.9vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 750;
  hyphens: none;
}
.ab-lead { margin: 0 0 var(--space-3); color: #bcd4f2; font-size: 17px; }
.ab-actions { display: flex; flex-wrap: wrap; gap: var(--space-control-x); }
.ab-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-inline);
  min-height: 46px;
  padding: var(--space-control-y) 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--motion), box-shadow var(--motion), background-color var(--motion);
}
.ab-btn-primary { background: linear-gradient(#fff, #edf5ff); color: #0b5fd6; border: 1px solid #dceafa; box-shadow: 0 8px 22px rgba(0, 16, 57, 0.3); }
.ab-btn-ghost { background: rgba(255, 255, 255, 0.07); color: #eaf3ff; border: 1px solid rgba(190, 220, 255, 0.45); }
.ab-btn:focus-visible { transform: translateY(var(--lift-m)); outline: 3px solid #fff; outline-offset: 3px; }
@media (hover: hover) {
  .ab-btn:hover { transform: translateY(var(--lift-m)); }
  .ab-btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }
  .ab-btn-primary:hover { box-shadow: 0 12px 26px rgba(0, 16, 57, 0.4); }
}

/* Quiet hero motion: drifting light rays, one slow glint, the portrait and text rising in. Transform and opacity only. */
@keyframes ab-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ab-pop { from { opacity: 0; transform: translateY(10px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes ab-drift { 0%, 100% { transform: rotate(24deg) translateX(0); opacity: 1; } 50% { transform: rotate(24deg) translateX(3vw); opacity: 0.55; } }
@keyframes ab-glint { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(260%); } }
/* Light version: no will-change layers, and the loops stand still while the hero is off screen (about-motion.js sets .ab-hero-off). */
.ab-ray { animation: ab-drift 14s ease-in-out infinite; }
.ab-hero-off .ab-ray, .ab-hero-off .ab-hero::after { animation-play-state: paused; }
.ab-ray-2 { animation-duration: 18s; animation-delay: -6s; }
.ab-ray-3 { animation-duration: 11s; animation-delay: -3s; }
.ab-hero::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 22%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(190, 225, 255, 0.12), transparent);
  animation: ab-glint 11s ease-in-out 1.4s infinite;
}
.ab-name, .ab-role, .ab-hero h1, .ab-lead, .ab-actions { animation: ab-rise 0.7s ease both; }
.ab-role { animation-delay: 0.08s; }
.ab-hero h1 { animation-delay: 0.16s; }
.ab-lead { animation-delay: 0.26s; }
.ab-actions { animation-delay: 0.36s; }
.ab-portrait { animation: ab-pop 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both; }

/* ---------- at a glance and jump links ---------- */
.ab-facts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: -38px clamp(14px, 4vw, 40px) 0;
  padding: 0;
  list-style: none;
}
.ab-facts li {
  display: grid;
  gap: 2px;
  align-content: start;
  padding: 14px 18px;
  border: 1px solid var(--card-line);
  border-radius: var(--radius-m);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.ab-facts b { font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; color: var(--blue-ink); font-variant-numeric: tabular-nums; }
.ab-facts span { font-size: 13.5px; line-height: 1.4; color: var(--card-text); }
.ab-jump { display: flex; flex-wrap: wrap; gap: var(--space-1); margin: var(--space-3) 0 0; }
@media (min-width: 701px) {
  /* Solid bar: a backdrop blur here was re-rendered on every scroll frame over the animated hero. */
  .ab-jump { position: sticky; top: 72px; z-index: 5; padding: 8px 0; background: var(--bg); background: color-mix(in srgb, var(--bg) 94%, transparent); }
}
.ab-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--blue-line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--blue-ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--motion), background-color var(--motion), border-color var(--motion);
}
.ab-jump a:hover, .ab-jump a:focus-visible { background: var(--blue-soft); border-color: var(--blue); }
.ab-jump a[aria-current="location"] { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }

/* ---------- sections ---------- */
.block { padding: var(--space-5) 0 var(--space-1); }
.block > h2, .peak-copy > h2, .ab-piano-copy > h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 var(--space-2);
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.block > h2::before, .peak-copy > h2::before, .ab-piano-copy > h2::before {
  content: "";
  flex: none;
  width: 6px;
  height: 1.05em;
  border-radius: 3px;
  background: linear-gradient(var(--blue), #00b7ff);
}
.block > p { max-width: 760px; color: var(--card-text); margin: 0 0 var(--space-2); }

/* how I work: numbered steps */
.flow { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-3); counter-reset: step; }
.flow-step {
  position: relative;
  padding: var(--space-2);
  border: 1px solid var(--card-line);
  border-radius: var(--radius-m);
  background: var(--surface);
  counter-increment: step;
}
.flow-step::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: var(--space-0); color: var(--blue-ink); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; }
.flow-step strong { display: block; margin-bottom: var(--space-0); }
.flow-step span { display: block; font-size: 14px; color: var(--card-text); }
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(var(--space-3) / -2);
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--blue);
  border-right: 2px solid var(--blue);
  transform: translate(50%, -50%) rotate(45deg);
  transform-origin: center;
}

/* project cards with a preview of the program */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.case {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--card-line);
  border-radius: var(--radius-l);
  background: var(--surface);
  /* opacity and transform of the kit reveal must survive here, so the cards fade in one after another */
  transition: opacity 0.6s ease calc(var(--ab-i, 0) * 90ms), transform 0.6s ease calc(var(--ab-i, 0) * 90ms), box-shadow var(--motion), border-color var(--motion);
}
.case-shot { display: grid; place-items: center; height: 232px; padding: 16px; background: linear-gradient(145deg, var(--shot-from, #14304f), var(--shot-to, #2b5f9a)); }
.shot-img { display: block; width: auto; height: auto; max-width: 100%; max-height: 200px; border-radius: 10px; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.7); }
.shot-peak { --shot-from: #34261a; --shot-to: #7a5326; }
.shot-kart { --shot-from: #0f3d8a; --shot-to: #2b6fe0; }
.shot-mp { --shot-from: #1f4d2a; --shot-to: #4f9a5c; }
.shot-kaktus { --shot-from: #123a22; --shot-to: #2f7a46; }
.shot-ghs { --shot-from: #151a22; --shot-to: #3b4658; }
.shot-lekt { --shot-from: #2a1c4e; --shot-to: #5a3aa0; }
.shot-lc { --shot-from: #182f4b; --shot-to: #355d88; }.shot-hot { --shot-from: #06303a; --shot-to: #0f7a86; }
.shot-hot .shot-img { max-height: 216px; border-radius: 0; box-shadow: none; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.5)); -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.shot-img.shot-icon { width: 132px; height: 132px; border-radius: 30px; }
.case-body { display: flex; flex: 1; flex-direction: column; padding: var(--space-3) var(--space-4) var(--space-3); }
.case-head { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-1); }
.case-icon { flex-shrink: 0; width: 48px; height: 48px; object-fit: contain; }
.case h3 { margin: 0; min-width: 0; font-size: 21px; line-height: 1.25; letter-spacing: -0.02em; }
.case-meta { margin: 0 0 var(--space-2); font-size: 13px; color: var(--muted); }
.case-parts { margin: 0 0 var(--space-2); flex: 1; }
.case-parts dt { font-size: 13px; font-weight: 700; color: var(--ink); }
.case-parts dd { margin: var(--space-hairline) 0 var(--space-2); font-size: 15px; color: var(--card-text); }
.case-links { display: flex; flex-wrap: wrap; gap: var(--space-1); margin: 0 0 0 calc(-1 * var(--space-1)); font-size: 14px; font-weight: 700; }
.case-links a {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-1);
  border-radius: var(--radius-xs);
  color: var(--blue-ink);
  transition: transform var(--motion), box-shadow var(--motion), background-color var(--motion);
}
.case-links a:focus-visible { transform: translateY(var(--lift-s)); box-shadow: var(--shadow-lift); }
@media (hover: hover) {
  .case-links a:hover { transform: translateY(var(--lift-s)); box-shadow: var(--shadow-lift); background: var(--blue-soft); }
  .case:hover, .flow-step:hover, .ab-facts li:hover, .chip-group:hover, .timeline li:hover, .contact li:hover { transform: translateY(var(--lift-m)); box-shadow: var(--shadow-card); border-color: var(--card-line-hover); }
  .case:hover { transition: transform var(--motion), box-shadow var(--motion), border-color var(--motion); }
  .case:hover .shot-img { transform: scale(1.03); }
}
.flow-step, .ab-facts li, .chip-group, .timeline li, .contact li { transition: transform var(--motion), box-shadow var(--motion), border-color var(--motion); }
.shot-img { transition: transform 0.4s ease; }

/* skill chips */
.chip-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.chip-group { padding: var(--space-2) var(--space-3) var(--space-3); border: 1px solid var(--card-line); border-radius: var(--radius-l); background: var(--surface); }
.chip-group h3 { margin: 0; color: var(--muted); font-size: 12.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-1); margin: var(--space-1) 0 0; padding: 0; list-style: none; }
.chips li {
  padding: 6px 13px;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  background: var(--bg);
  font-size: 14px;
  font-weight: 600;
  transition: transform var(--motion), border-color var(--motion);
}
.chips li:hover { transform: translateY(var(--lift-m)); border-color: var(--blue); }

/* career scale */
.timeline { position: relative; list-style: none; margin: 0 0 var(--space-3); padding: 0 0 0 28px; max-width: 900px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 14px; bottom: 14px; width: 2px; border-radius: 1px; background: linear-gradient(var(--blue), var(--line)); }
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: var(--space-2);
  margin: 0 0 12px;
  padding: var(--space-2) 18px;
  border: 1px solid var(--card-line);
  border-radius: var(--radius-m);
  background: var(--surface);
}
.timeline li::before { content: ""; position: absolute; top: 22px; left: -26px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.timeline time { font-weight: 700; color: var(--blue-ink); font-variant-numeric: tabular-nums; }
.timeline p { margin: 0; color: var(--card-text); }
.timeline p + p { margin-top: var(--space-1); }
.timeline strong { color: var(--ink); }
.ab-path-note { max-width: 760px; color: var(--card-text); }

/* contact */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-2); max-width: 760px; margin: 0; padding: 0; list-style: none; font-weight: 700; }
.contact li { padding: var(--space-1) var(--space-3); border: 1px solid var(--card-line); border-radius: var(--radius-m); background: var(--surface); color: var(--muted); overflow-wrap: anywhere; }
.contact a { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue-ink); }

/* ---------- PeakMP3 demo ---------- */
#demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, calc(var(--demo-max) + 36px));
  gap: var(--space-3) var(--space-5);
  align-items: start;
}
.peak-copy { min-width: 0; max-width: 680px; }
.peak-copy > p, .peak-credits p { color: var(--card-text); margin: 0 0 var(--space-2); }
.peak-tracks { display: grid; gap: var(--space-1); margin: 0 0 var(--space-3); }
.peak-track {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 44px;
  padding: var(--space-control-y) var(--space-2);
  border: 1px solid var(--card-line);
  border-radius: var(--radius-m);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.peak-track small { font-size: 13px; color: var(--muted); }
.peak-track[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); }
.peak-controls {
  display: grid;
  gap: var(--space-control-x);
  margin: 0 0 var(--space-3);
  padding: var(--space-2);
  border: 1px solid var(--card-line);
  border-radius: var(--radius-m);
  background: var(--surface);
}
.peak-readout { display: flex; align-items: baseline; gap: var(--space-1); font-weight: 700; }
.peak-readout output { font-size: 28px; line-height: 1; color: var(--blue-ink); font-variant-numeric: tabular-nums; }
.peak-controls input[type="range"] { width: 100%; max-width: 100%; min-height: 44px; margin: 0; accent-color: var(--blue); touch-action: pan-y; }
.peak-toolbar { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.peak-toolbar button {
  min-height: 44px;
  padding: var(--space-control-y) var(--space-control-x);
  border: 1px solid var(--blue-line);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--blue-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.peak-toolbar button[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); }
.peak-volume { display: grid; gap: var(--space-0); font-size: 14px; font-weight: 700; }
.peak-status { margin: 0; font-size: 14px; color: var(--muted); }
.peak-credits { color: var(--card-text); font-size: 14px; }
.peak-credits summary { min-height: 44px; padding: var(--space-control-y) 0; font-weight: 700; color: var(--ink); cursor: pointer; }
.peak-credits ul { margin: 0 0 var(--space-1); padding-left: var(--space-3); }
.peak-credits a { color: var(--blue-ink); }
.peak-device {
  width: 100%;
  max-width: calc(var(--demo-max) + 36px);
  justify-self: center;
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(145deg, #2c1f12, #6a4a22);
  box-shadow: var(--shadow-card);
}
.peak-surface { position: relative; width: 100%; }
.peak-surface canvas, .peak-device canvas { display: block; width: 100%; height: auto; touch-action: pan-y; }
.peak-hotspots { position: absolute; inset: 0; pointer-events: none; }
.peak-hotspots button {
  position: absolute;
  pointer-events: auto;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: transparent;
}
.peak-hotspots button:focus-visible { outline: 2px solid var(--demo-hot-focus); outline-offset: 1px; border-radius: var(--radius-demo); }

.peak-dialog {
  box-sizing: border-box;
  width: 400px;
  max-width: calc(100vw - var(--space-3));
  padding: var(--space-3);
  border: 1px solid var(--demo-dialog-line);
  border-radius: var(--radius-m);
  background: var(--demo-dialog-bg);
  color: var(--demo-dialog-ink);
  font: 13px var(--demo-font);
  box-shadow: var(--shadow-photo);
}
.peak-dialog::backdrop { background: var(--demo-backdrop); }
.peak-dialog h2 { margin: 0 0 var(--space-3); font: bold 19px var(--demo-font); }
.peak-dialog button {
  min-height: 44px;
  padding: var(--space-1) var(--space-2);
  border: 2px solid var(--demo-button-line);
  border-radius: var(--radius-demo);
  background: var(--demo-button-bg);
  color: var(--demo-dialog-ink);
  font: 13px var(--demo-font);
  cursor: pointer;
}
.peak-track-dialog > button { display: block; width: 100%; margin: var(--space-1) 0; }
.peak-dialog.peak-pixel-dialog {
  padding: 0;
  width: var(--dialog-w);
  height: var(--dialog-h);
  max-width: calc(100vw - var(--space-control-x));
  border: 0;
  background-color: transparent;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  overflow: hidden;
}
.peak-dialog.peak-pixel-dialog button {
  position: absolute;
  display: block;
  min-height: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: transparent;
}
.peak-dialog.peak-pixel-dialog button:focus-visible { outline: 2px solid var(--demo-hot-focus); outline-offset: 0; }
.peak-pixel-dialog input {
  position: absolute;
  box-sizing: border-box;
  margin: 0;
  top: 24.9%;
  left: 5.9%;
  width: 88.2%;
  height: 18.8%;
  padding: 0 var(--space-demo-input);
  border: 0;
  background: transparent;
  font: 29px var(--demo-font);
}
.peak-pixel-dialog[data-kind="cal"] input { top: 27%; left: 20%; width: 23%; height: 19%; font-weight: bold; text-align: right; outline: none; }
.peak-pixel-dialog input::-webkit-inner-spin-button, .peak-pixel-dialog input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.peak-dbfs-unit { position: absolute; left: 45%; top: 29%; font: bold 29px var(--demo-font); }
.peak-density-limit {
  position: absolute;
  box-sizing: border-box;
  left: 5.9%;
  top: 46%;
  width: 88.2%;
  height: 27%;
  margin: 0;
  padding: var(--space-hairline) var(--space-demo-input) 0;
  background: var(--demo-limit-bg);
  font: 13px var(--demo-font);
}

/* Demo frame: the picture's own window has rounded corners (about 26 px of 973) and white outside them baked into the image; the radius in percent of the canvas clips that white so the walnut frame shows through. */
.peak-device canvas, .peak-surface { border-radius: 2.9% / 1.75%; }

/* Control panel next to the demo in the brown PeakMP3 style (cream card by day, dark walnut at night). */
#demo {
  --pk-from: #fff8e8; --pk-to: #ecdcbd; --pk-line: #ad8d61;
  --pk-ink: #292820; --pk-muted: #5e4f38; --pk-accent: #8f4308; --pk-focus: #8a3f05;
  --pk-field: #fffdf5; --pk-field-line: #c9ae80; --pk-on-bg: #ffd9a3; --pk-hot-ink: #2b1704;
}
:root[data-theme="dark"] #demo {
  --pk-from: #2c1f12; --pk-to: #3d2b17; --pk-line: #7a5b32;
  --pk-ink: #f6ead3; --pk-muted: #d2c0a0; --pk-accent: #ffb866; --pk-focus: #ffcf8a;
  --pk-field: #21170c; --pk-field-line: #6b5334; --pk-on-bg: #5a3c16; --pk-hot-ink: #2b1704;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) #demo {
    --pk-from: #2c1f12; --pk-to: #3d2b17; --pk-line: #7a5b32;
    --pk-ink: #f6ead3; --pk-muted: #d2c0a0; --pk-accent: #ffb866; --pk-focus: #ffcf8a;
    --pk-field: #21170c; --pk-field-line: #6b5334; --pk-on-bg: #5a3c16; --pk-hot-ink: #2b1704;
  }
}
#demo .peak-copy {
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--pk-line);
  border-radius: 28px;
  background: linear-gradient(145deg, var(--pk-from), var(--pk-to));
  color: var(--pk-ink);
  box-shadow: var(--shadow-card);
}
#demo .peak-copy > h2 { color: var(--pk-ink); }
#demo .peak-copy > h2::before { background: linear-gradient(#ff9c30, #eb6408); }
#demo .peak-copy > p, #demo .peak-credits, #demo .peak-credits p, #demo .peak-status { color: var(--pk-muted); }
#demo .peak-track, #demo .peak-controls { border-color: var(--pk-field-line); background: var(--pk-field); color: var(--pk-ink); }
#demo .peak-track small { color: var(--pk-muted); }
#demo .peak-track[aria-pressed="true"] { border-color: #eb6408; background: var(--pk-on-bg); box-shadow: inset 4px 0 0 #eb6408; }
#demo .peak-readout output { color: var(--pk-accent); }
#demo .peak-controls input[type="range"] { accent-color: #eb6408; }
#demo .peak-toolbar button { border-color: var(--pk-field-line); background: var(--pk-field); color: var(--pk-ink); }
#demo .peak-toolbar button[aria-pressed="true"] { border-color: #b9570c; background: linear-gradient(#ff9c30, #eb6408); color: var(--pk-hot-ink); }
#demo .peak-credits summary, #demo .peak-volume { color: var(--pk-ink); }
#demo .peak-credits a { color: var(--pk-accent); }
#demo .peak-track:focus-visible, #demo .peak-toolbar button:focus-visible, #demo .peak-credits summary:focus-visible, #demo .peak-controls input:focus-visible { outline: 3px solid var(--pk-focus); outline-offset: 2px; }
@media (hover: hover) {
  #demo .peak-track:hover, #demo .peak-toolbar button:hover { border-color: #eb6408; }
}

/* ---------- mini piano ---------- */
.ab-piano { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3) var(--space-5); align-items: center; }
.ab-piano-copy { min-width: 0; }
.ab-piano-copy > p { color: var(--card-text); margin: 0 0 var(--space-2); }
.ab-piano-stage { min-width: 0; }

/* ---------- legal pages ---------- */
.legal { max-width: 780px; padding: var(--space-2) 0 var(--space-4); }
.legal h1 { font-size: clamp(32px, 4vw, 44px); margin: 0 0 var(--space-3); line-height: 1.1; letter-spacing: -0.03em; font-weight: 750; }
.legal h2 { margin: var(--space-4) 0 var(--space-1); font-size: 21px; line-height: 1.3; }
.legal p, .legal address, .legal li { color: var(--card-text); }
.legal address { font-style: normal; margin: 0 0 var(--space-2); }
.legal a { color: var(--blue-ink); }

/* Impressum: Telefonnummer als Bild, nicht als Text */
.contact-phone { vertical-align: middle; }

/* Kit shell around the content */
main.ppk-shell { padding-bottom: var(--space-2); }

@media (max-width: 980px) {
  .ab-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: 1fr; gap: var(--space-3); }
  .flow-step:not(:last-child)::after { top: auto; right: auto; bottom: calc(var(--space-3) / -2); left: 50%; transform: translate(-50%, 50%) rotate(135deg); }
  #demo, .ab-piano { grid-template-columns: 1fr; }
  .peak-copy { max-width: none; }
}
/* Tablets and phones turned sideways (701-1000px). The portrait stands bottom right (--ab-pw wide, as large as fits) and is taken out of the
   grid. Name, role and headline run across its transparent upper left (the cut-out is empty left of the face above the laptop), the paragraph
   and the buttons fill the column to the left of the laptop (--ab-lw wide, about 300px), so there is no empty space beside the laptop. */
@media (min-width: 701px) and (max-width: 1000px) {
  .ab-hero { --ab-pw: clamp(260px, 91vw - 370px, 460px); --ab-gap: clamp(24px, 4vw, 48px); }
  .ab-hero-grid { display: block; min-height: calc(var(--ab-pw) * 1.018 - clamp(28px, 5vw, 56px) - var(--ab-pad-b) + 24px); }
  .ab-hero-copy { max-width: none; }
  .ab-hero-head { display: block; position: relative; z-index: 1; max-width: calc(100% + var(--ab-pad-x) - 30px - 0.59 * var(--ab-pw)); }
  .ab-portrait { position: absolute; right: 14px; bottom: 0; width: var(--ab-pw); margin: 0; }
  .ab-lead, .ab-actions { max-width: calc(100% + var(--ab-pad-x) - 14px - var(--ab-gap) - var(--ab-pw)); }
}
@media (max-width: 820px) {
  .cases, .chip-groups { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .ab-hero { border-radius: 20px; }
  .ab-hero-grid { grid-template-columns: 1fr; gap: var(--space-3); }
  /* Portrait sits above the text, so its cut would show mid-hero: fade the lower part out. */
  .ab-portrait { order: -1; justify-self: end; align-self: auto; max-width: 250px; margin-bottom: 0; margin-right: calc(-1 * (var(--ab-pad-x) - 34px)); -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
  .ab-name { font-size: 20px; }
  .ab-hero h1 { font-size: 28px; }
  .ab-lead { font-size: 16px; }
  .ab-facts { margin-inline: 8px; gap: 10px; }
  .ab-facts li { padding: 12px 14px; }
  .ab-facts b { font-size: 22px; }
  .case-body { padding: var(--space-3); }
  .case-shot { height: 208px; }
  .shot-img { max-height: 176px; }
  .shot-hot .shot-img { max-height: 192px; }
  .timeline li { grid-template-columns: 1fr; gap: var(--space-0); }
  .block { padding-top: var(--space-4); }
  .peak-device { padding: 12px; border-radius: 22px; }
}
@media (max-width: 380px) {
  /* "Anwendungsentwicklung" at 28px is 316px wide, the column at 375 is 303px and at 320 is 248px: the word broke in the middle. */
  .ab-hero h1 { font-size: clamp(21px, 6.6vw, 28px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .ab-hero::after { display: none; }
  .ab-btn:hover, .ab-btn:focus-visible, .case-links a:hover, .case:hover, .flow-step:hover, .chips li:hover,
  .ab-facts li:hover, .chip-group:hover, .timeline li:hover, .contact li:hover, .case:hover .shot-img,
  .case-links a:focus-visible { transform: none; }
  .ab-ray { will-change: auto; }
}

/* ---------- print: one clean page for a file or a printout ---------- */
@media print {
  .ppk-nav-wrap, .ppk-skip, .ab-jump, .ab-actions, .ab-scene, #demo, #piano, .ppk-footer nav, .case-shot { display: none !important; }
  .ppk-page { background: #fff !important; color: #000 !important; }
  .ppk-reveal, html.ppk-js .ppk-reveal:not(.ppk-in) { opacity: 1 !important; transform: none !important; }
  .ab-hero { padding: 0 0 12px; border-radius: 0; background: none; color: #000; }
  .ab-hero-grid { grid-template-columns: 1fr 110px; gap: 18px; }
  .ab-hero::after { display: none; }
  .ab-name, .ab-role, .ab-hero h1, .ab-lead, .ab-actions, .ab-portrait { animation: none !important; }
  .ab-portrait { margin-bottom: 0; }
  .ab-hero h1, .ab-name, .ab-lead { color: #000; }
  .ab-role { color: #0a3a86; }
  .ab-facts { margin: 12px 0 0; }
  .ab-facts li, .case, .chip-group, .timeline li, .flow-step, .contact li { box-shadow: none; background: #fff; break-inside: avoid; }
  .cases { grid-template-columns: 1fr 1fr; }
  .case-body { padding: 12px; }
  .case-links a[href^="http"]::after { content: " (" attr(href) ")"; font-weight: 400; font-size: 10px; word-break: break-all; }
  .block { padding: 18px 0 0; break-inside: avoid-page; }
  .flow { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .flow-step::after { display: none; }
}

