/* ============================================================
   janafisenko.de — Stilvorlage der Startseite

    1. Schriften                 8. Gestaltung
    2. Design-Token              9. Werdegang
    3. Grundlagen               10. Was ich mitbringe
    4. Grundgeruest der Seite   11. Kontakt
    5. Linke Spalte             12. Rechtliches
    6. Hauptspalte              13. Einblenden beim Scrollen
    7. Projekte                 14. Druck
   ============================================================ */

/* ============================================================
   1. Schriften
   Alle Schnitte liegen als eigene Dateien im Repository, es wird
   also kein Font-CDN angefragt. "swap" zeigt sofort die
   Systemschrift, damit der Text nie unsichtbar wartet.
   ============================================================ */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-600.woff2") format("woff2");
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-700.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-600.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2");
}


/* ============================================================
   2. Design-Token — warmes Klima, ruhige Kontraste
   ============================================================ */
:root {
  --bg:            #faf7f3;
  --bg-tint:       #f3ede5;
  --surface:       #ffffff;
  --surface-2:     #f6f1ea;
  --ink:           #1f1a16;
  --ink-soft:      #5d5349;
  --ink-faint:     #8d8175;
  --line:          #e8e0d6;
  --line-strong:   #d3c8ba;
  --accent:        #b04a22;
  --accent-hover:  #8d3917;
  --accent-soft:   #fbeade;
  --signal:        #2f6f6a;
  --signal-soft:   #e0efec;
  --gold:          #9a6212;
  --gold-soft:     #f8efdc;
  --rail-bg:       #1d1713;
  --rail-bg-2:     #2c231c;
  --rail-ink:      #f6f1ea;
  --rail-soft:     #b3a595;
  --rail-line:     rgba(255,255,255,.15);
  --shadow-sm: 0 1px 2px rgba(60,40,25,.05), 0 2px 6px rgba(60,40,25,.05);
  --shadow-md: 0 4px 10px -3px rgba(60,40,25,.10), 0 16px 30px -12px rgba(60,40,25,.16);

  --radius:    16px;
  --radius-sm: 9px;
  --radius-lg: 24px;

  --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --gap-section: clamp(3.5rem, 7vw, 5.75rem);
  --pad-main-x:  clamp(1.25rem, 5vw, 4rem);
  --ease: cubic-bezier(.22,.61,.36,1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:           #16120f;
    --bg-tint:      #1c1714;
    --surface:      #211b17;
    --surface-2:    #2a221c;
    --ink:          #f3ece4;
    --ink-soft:     #bcae9f;
    --ink-faint:    #8f8375;
    --line:         #342a23;
    --line-strong:  #4a3c31;
    --accent:       #f0916a;
    --accent-hover: #f7ac8b;
    --accent-soft:  #342016;
    --signal:       #6cc0b7;
    --signal-soft:  #16302e;
    --gold:         #ddb265;
    --gold-soft:    #2c2517;
    --rail-bg:      #0f0c0a;
    --rail-bg-2:    #1a1512;
    --rail-ink:     #f3ece4;
    --rail-soft:    #a5988a;
    --rail-line:    rgba(255,255,255,.13);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 4px 10px rgba(0,0,0,.35), 0 18px 34px -12px rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"] {
  --bg:           #16120f;
  --bg-tint:      #1c1714;
  --surface:      #211b17;
  --surface-2:    #2a221c;
  --ink:          #f3ece4;
  --ink-soft:     #bcae9f;
  --ink-faint:    #8f8375;
  --line:         #342a23;
  --line-strong:  #4a3c31;
  --accent:       #f0916a;
  --accent-hover: #f7ac8b;
  --accent-soft:  #342016;
  --signal:       #6cc0b7;
  --signal-soft:  #16302e;
  --gold:         #ddb265;
  --gold-soft:    #2c2517;
  --rail-bg:      #0f0c0a;
  --rail-bg-2:    #1a1512;
  --rail-ink:     #f3ece4;
  --rail-soft:    #a5988a;
  --rail-line:    rgba(255,255,255,.13);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 4px 10px rgba(0,0,0,.35), 0 18px 34px -12px rgba(0,0,0,.5);
}

/* ============================================================
   3. Grundlagen
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -.015em; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 600; text-decoration: none;
}
.skip:focus { left: 0; }
.mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: .13em; text-transform: uppercase; }

/* ============================================================
   4. Grundgeruest der Seite
   ============================================================ */
.shell { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr; overflow-x: clip; }
@media (min-width: 1000px) {
  .shell { grid-template-columns: minmax(300px, 348px) minmax(0, 1fr); align-items: start; }
}

/* ============================================================
   5. Linke Spalte
   ============================================================ */
.rail {
  background:
    radial-gradient(130% 70% at 10% 0%, var(--rail-bg-2) 0%, transparent 62%),
    var(--rail-bg);
  color: var(--rail-ink);
  padding: 36px clamp(1.25rem, 5vw, 2rem) 34px;
  display: flex; flex-direction: column; gap: 20px;
  min-width: 0;
}
@media (min-width: 1000px) {
  .rail {
    position: sticky; top: 0;
    height: 100vh; height: 100dvh;
    padding: 40px 34px 30px;
    overflow-y: auto; overscroll-behavior: contain;
    scrollbar-width: thin; scrollbar-color: var(--rail-line) transparent;
  }
}

.portrait { width: 100%; max-width: 178px; }
.portrait img {
  width: 100%; border-radius: var(--radius);
  border: 1px solid var(--rail-line);
  box-shadow: 0 12px 30px -14px rgba(0,0,0,.7);
}
@media (min-width: 1000px) and (max-height: 900px) { .portrait { max-width: 138px; } }
@media (min-width: 1000px) and (max-height: 720px) { .portrait { max-width: 106px; } }
@media (min-width: 1000px) and (max-height: 600px) { .portrait { max-width: 84px; } }

.id-head .kicker { color: var(--rail-soft); margin-bottom: 10px; }
.id-head h1 { font-size: clamp(1.95rem, 4.2vw, 2.4rem); font-weight: 700; line-height: 1.04; }
.id-head .role { margin-top: 11px; font-size: .96rem; color: var(--rail-soft); line-height: 1.55; }

.rail-contact { display: grid; gap: 9px; }
.rail-contact a {
  color: var(--rail-ink); font-size: .92rem; text-decoration: none;
  display: inline-flex; align-items: center; gap: 9px; word-break: break-word;
}
.rail-contact a span { border-bottom: 1px solid var(--rail-line); transition: border-color .18s var(--ease); }
.rail-contact a:hover span { border-color: var(--rail-ink); }
.rail-contact svg { width: 15px; height: 15px; flex: none; color: var(--rail-soft); }

.badge {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--rail-line); border-radius: 999px;
  padding: 6px 12px; color: var(--rail-soft); background: rgba(255,255,255,.04);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }

.rail-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.rail-nav a {
  display: block; text-decoration: none; color: var(--rail-soft);
  font-size: .9rem; padding: 6px 0 6px 14px;
  border-left: 2px solid var(--rail-line);
  transition: color .18s var(--ease), border-color .18s var(--ease);
  white-space: nowrap;
}
.rail-nav a:hover { color: var(--rail-ink); border-color: var(--rail-soft); }
.rail-nav a[aria-current="true"] { color: var(--rail-ink); border-color: var(--gold); font-weight: 600; }
@media (max-width: 999px) {
  /* Die Navigation scrollt waagerecht. Die weiche Kante rechts zeigt, dass
     hinter „Gestaltung" noch Punkte kommen; ohne sie wirkt die Liste zu Ende. */
  .rail-nav {
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 34px), transparent 100%);
    mask-image: linear-gradient(to right, #000 calc(100% - 34px), transparent 100%);
  }
  .rail-nav::-webkit-scrollbar { display: none; }
  .rail-nav ul { gap: 18px; padding-bottom: 2px; padding-right: 34px; }
  .rail-nav a { border-left: none; border-bottom: 2px solid var(--rail-line); padding: 6px 1px; }
}
@media (min-width: 1000px) {
  .rail-nav ul { flex-direction: column; gap: 0; }
  .rail-nav { margin-top: auto; padding-top: 10px; }
}

.theme-toggle {
  appearance: none; cursor: pointer; justify-self: start; align-self: flex-start;
  background: rgba(255,255,255,.05); color: var(--rail-soft);
  border: 1px solid var(--rail-line); border-radius: 999px;
  padding: 7px 13px; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .1em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.theme-toggle:hover { color: var(--rail-ink); border-color: var(--rail-soft); background: rgba(255,255,255,.1); }
.theme-toggle svg { width: 14px; height: 14px; }
.theme-toggle .i-sun, .theme-toggle .lbl-light { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun,
:root[data-theme="dark"] .theme-toggle .lbl-light { display: inline; }
:root[data-theme="dark"] .theme-toggle .i-moon,
:root[data-theme="dark"] .theme-toggle .lbl-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun,
  :root:not([data-theme="light"]) .theme-toggle .lbl-light { display: inline; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon,
  :root:not([data-theme="light"]) .theme-toggle .lbl-dark { display: none; }
}

/* ============================================================
   6. Hauptspalte
   ============================================================ */
.main { padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad-main-x) clamp(3.5rem, 7vw, 5rem); min-width: 0; }
.block { margin-bottom: var(--gap-section); scroll-margin-top: 24px; }
.block:last-child { margin-bottom: 0; }

.block-label {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint);
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 12px; margin-bottom: clamp(1.35rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
}
.block-label::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}
.lead-in { color: var(--ink-soft); max-width: 54em; margin-bottom: clamp(1.35rem, 3vw, 1.9rem); }

/* Intro */
.intro p { font-size: 1.02rem; max-width: 40em; color: var(--ink-soft); }
.intro p + p { margin-top: 15px; }
.intro .lead {
  color: var(--ink); font-size: clamp(1.18rem, 2.2vw, 1.42rem); line-height: 1.48;
  font-family: var(--display); font-weight: 600; max-width: 22em;
}
.intro .pull { color: var(--ink); font-weight: 600; }

.facts {
  display: grid; gap: 1px; margin-top: clamp(1.7rem, 3vw, 2.3rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
@media (min-width: 1200px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fact { background: var(--surface); padding: 16px 18px; }
.fact dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.fact dd { margin: 5px 0 0; font-size: .95rem; font-weight: 600; color: var(--ink); line-height: 1.35; }

/* Wie ich arbeite */
.principles { display: grid; gap: 14px; }
@media (min-width: 720px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.principle {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
}
.principle h3 { font-size: 1.04rem; font-weight: 600; margin-bottom: 7px; display: flex; align-items: baseline; gap: 10px; }
.principle h3::before {
  content: ""; width: 7px; height: 7px; border-radius: 2px; flex: none;
  background: var(--accent); transform: translateY(-2px);
}
.principle p { font-size: .95rem; color: var(--ink-soft); }

/* ============================================================
   7. Projekte
   ============================================================ */
.projects { display: grid; gap: 18px; }
@media (min-width: 700px) { .projects.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.project {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.15rem, 2.4vw, 1.6rem);
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
@media (hover: hover) {
  .project:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
}
.project:focus-within { border-color: var(--accent); }

.project-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; }
.project h3 { font-size: 1.18rem; font-weight: 600; display: flex; align-items: center; gap: 11px; }
.project h3 img { width: 30px; height: 30px; border-radius: 7px; flex: none; }

.project .what { color: var(--ink-soft); font-size: .96rem; }
.stack { display: flex; flex-wrap: wrap; gap: 6px; margin: 3px 0 0; padding: 0; }
.stack li {
  list-style: none;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em;
  color: var(--ink-faint); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 3px 8px;
}
.links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 6px; font-size: .91rem; font-weight: 600; }
.links a {
  text-decoration: none; display: inline-flex; align-items: center; gap: 7px;
  border-bottom: 1.5px solid var(--accent); padding-bottom: 1px;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.links a:hover { color: var(--accent-hover); border-color: var(--accent-hover); }
.links svg { width: 13px; height: 13px; flex: none; }

/* Projektbilder */
.shot {
  margin: 2px 0 4px; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-2);
}
.shot img { width: 100%; }
.phones { display: flex; gap: 10px; margin: 2px 0 4px; }
.phones img {
  width: 0; flex: 1 1 0; min-width: 0;
  border-radius: 10px; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

/* Hervorgehobenes Projekt */
.project.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft) 0%, transparent 190px), var(--surface);
  box-shadow: var(--shadow-md);
}
@media (min-width: 700px) {
  .projects.two .project.featured { grid-column: 1 / -1; }
  .project.featured { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,360px); gap: 8px 30px; align-items: start; }
  .project.featured .shot { grid-column: 2; grid-row: 1 / span 8; margin: 0; }
  /* Die Abbildung laeuft unter beiden Spalten durch: das Motiv traegt Breite,
     im 360px-Streifen der Seitenspalte waere davon nichts zu erkennen. */
  .project.featured .portal-figure { grid-column: 1 / -1; grid-row: 9; }
}
.project.featured h3 { font-size: clamp(1.32rem, 2.6vw, 1.62rem); }
.project.featured .what { font-size: 1rem; }

/* Ausblick-Kachel */
.project.plan-card { background: var(--surface-2); border-style: dashed; box-shadow: none; }
.project.plan-card:hover { transform: none; box-shadow: none; }
.plan-list { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.plan-list li { font-size: .94rem; color: var(--ink-soft); padding-left: 16px; position: relative; }
.plan-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--line-strong);
}
.plan-list strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   8. Gestaltung
   ============================================================ */
.works { display: grid; gap: 20px; }
@media (min-width: 800px) { .works { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.work {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
@media (hover: hover) { .work:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); } }
.work-media { background: var(--surface-2); border-bottom: 1px solid var(--line); }
.work-media img, .work-media video { width: 100%; height: auto; display: block; }
.work-video { background: #000; aspect-ratio: 1280 / 592; }
.project .note,
.work-body .note {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em;
  color: var(--ink-faint); margin-top: 2px;
}
.work-media.pair { display: grid; grid-template-columns: 1fr 168px; gap: 1px; background: var(--line); align-items: stretch; }
.work-media.pair img { height: 100%; object-fit: cover; object-position: top center; }
.work-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.work-body h3 { font-size: 1.1rem; font-weight: 600; }
.work-body .ctx { font-family: var(--mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint); }
.work-body p { font-size: .94rem; color: var(--ink-soft); }
.work.wide { grid-column: 1 / -1; }
@media (min-width: 800px) {
  .work.wide { flex-direction: row; }
  .work.wide .work-media { border-bottom: none; border-right: 1px solid var(--line); flex: 0 0 46%; display: flex; }
  .work.wide .work-media img { object-fit: cover; }
  .work.wide .work-body { justify-content: center; }
}

/* ============================================================
   9. Werdegang
   ============================================================ */
.figure { margin: 0 0 clamp(1.7rem, 3.5vw, 2.4rem); }
.figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.figure.banner img { aspect-ratio: 1240 / 505; object-fit: cover; object-position: 50% 42%; }
@media (max-width: 560px) { .figure.banner img { aspect-ratio: 3 / 2; object-position: 52% 30%; } }
.portal-figure { margin: 12px 0 0; }
.portal-figure img { border-radius: var(--radius-sm); }
.figure figcaption {
  margin-top: 10px; color: var(--ink-faint);
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em; line-height: 1.55;
}

.timeline { list-style: none; margin: 0; padding: 0; }
.tl-item {
  display: grid; gap: 2px 20px; grid-template-columns: 1fr;
  padding: 15px 0 15px 26px; position: relative;
  border-bottom: 1px solid var(--line);
}
.tl-item:last-child { border-bottom: none; }
.tl-item::before { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.tl-item:first-child::before { top: 22px; }
.tl-item:last-child::before  { bottom: calc(100% - 22px); }
.tl-item::after {
  content: ""; position: absolute; left: 0; top: 19px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-strong);
}
.tl-item[data-kind="studium"]::after { border-color: var(--accent); }
.tl-item[data-kind="lehre"]::after   { border-color: var(--signal); }
@media (min-width: 720px) { .tl-item { grid-template-columns: 178px minmax(0, 1fr); align-items: baseline; } }
.tl-when { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: var(--ink-faint); padding-top: 3px; }
.tl-what h3 { font-size: 1rem; font-weight: 600; }
.tl-what .org { display: block; font-size: .92rem; color: var(--ink-soft); margin-top: 2px; }
.tl-what p { font-size: .92rem; color: var(--ink-soft); margin-top: 4px; }
.tl-note { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--ink-faint); margin-top: 5px; }

/* ============================================================
   10. Was ich mitbringe
   ============================================================ */
.skills { display: grid; gap: 24px 34px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.skill h3 {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); font-weight: 500; margin-bottom: 10px;
}
.skill ul { margin: 0; padding: 0; list-style: none; }
.skill li { font-size: .93rem; color: var(--ink-soft); padding: 6px 0; border-bottom: 1px solid var(--line); }
.skill li:last-child { border-bottom: none; }
.skill li b { color: var(--ink); font-weight: 600; }

.langs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.langs li {
  list-style: none; border: none; padding: 0;
  display: inline-flex; align-items: baseline; gap: 7px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 13px; font-size: .9rem; color: var(--ink);
}
.langs li span { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }

/* ============================================================
   11. Kontakt
   ============================================================ */
.contact-box {
  background: linear-gradient(140deg, var(--accent-soft) 0%, var(--surface) 62%);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3.5vw, 2.4rem); box-shadow: var(--shadow-sm);
}
.contact-box h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); font-weight: 600; margin-bottom: 12px; }
.contact-box p { color: var(--ink-soft); max-width: 42em; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 11px 21px; border-radius: 999px;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--accent); color: #ffffff; border: 1px solid var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-2px); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: #16120f; } }
:root[data-theme="dark"] .btn-primary { color: #16120f; }
:root[data-theme="light"] .btn-primary { color: #ffffff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink-faint); transform: translateY(-2px); }

/* ============================================================
   12. Rechtliches
   ============================================================ */
.legal { margin-top: clamp(2.25rem, 5vw, 3rem); border-top: 1px solid var(--line); padding-top: 10px; }
.legal details { border-bottom: 1px solid var(--line); }
.legal details:last-of-type { border-bottom: none; }
.legal summary {
  cursor: pointer; list-style: none;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint); padding: 12px 0;
  display: flex; align-items: center; gap: 9px;
  transition: color .18s var(--ease);
}
.legal summary:hover { color: var(--ink); }
.legal summary::-webkit-details-marker { display: none; }
.legal summary::before { content: "+"; font-size: 14px; line-height: 1; width: 12px; color: var(--ink-faint); }
.legal details[open] summary::before { content: "\2212"; }
.legal .legal-body { font-size: .84rem; color: var(--ink-soft); line-height: 1.62; padding: 2px 0 16px 21px; max-width: 48em; }
.legal .legal-body p { margin-bottom: 9px; }
.legal .legal-body h4 { margin: 14px 0 4px; font-size: .84rem; color: var(--ink); font-family: var(--sans); font-weight: 600; }
.legal .legal-body a { color: inherit; }

/* ============================================================
   13. Einblenden beim Scrollen
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 85%;
    }
    @keyframes reveal-in {
      from { opacity: 0; transform: translateY(14px); }
      to   { opacity: 1; transform: none; }
    }
  }
}

/* ============================================================
   14. Druck
   ============================================================ */
@media print {
  .rail { background: none; color: #000; height: auto; position: static; padding: 0 0 18pt; overflow: visible; }
  .rail-nav, .theme-toggle { display: none; }
  .rail .id-head h1, .rail .role, .rail-contact a { color: #000; }
  .shell { display: block; max-width: none; }
  .main { padding: 0; }
  .project, .work, .contact-box, .facts, .principle { box-shadow: none; break-inside: avoid; background: none; }
  .legal details { display: none; }
  a { color: #000; }
}

