/* ============================================================
   Konrad Riedel — Ingenieurbüro Riedel, Dresden
   Typografie: Archivo (Breitenachse) + IBM Plex Mono für Messdaten
   ============================================================ */

@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plex Mono";
  src: url("assets/fonts/plexmono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plex Mono";
  src: url("assets/fonts/plexmono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #eaecE8;  --paper-2: #e0e3de;
  --ink: #161a18;
  --ink-soft: #333a36;
  --graphite: #5c635e;
  --rule: #c0c5bf;
  --oxide: #9e3524;
  --night: #1b201e;
  --night-box: #232927;
  --night-line: #4d5953;
  --night-text: #e6e8e4;
  --night-muted: #939c95;
  --led: #4fa571;

  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1160px;
  --pad: clamp(20px, 5vw, 64px);
  --rail: 128px;
  --gap: clamp(22px, 3.4vw, 56px);
  --tcol: 9.5rem;
  --tgap: clamp(18px, 3vw, 40px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  font-stretch: 100%;
  font-variation-settings: normal;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}

::selection {
  background: var(--oxide);
  color: #f4f2ee;
}

h1,
h2,
h3,
p,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--oxide);
  outline-offset: 3px;
  border-radius: 1px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.8125rem;
  text-decoration: none;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

/* ---------------------------------------------------------- Kopfleiste */

.bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(234, 236, 232, 0.88);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid var(--rule);
}

.bar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
  min-height: 56px;
}

.bar-brand {
  flex: none;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  color: var(--graphite);
  text-decoration: none;
  white-space: nowrap;
}

.bar-dot {
  color: var(--oxide);
}

.bar-brand:hover {
  color: var(--ink);
}

.bar-nav {
  display: flex;
  gap: clamp(14px, 1.8vw, 26px);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.bar-nav::-webkit-scrollbar {
  display: none;
}

.bar-nav a {
  font-size: 0.875rem;
  font-weight: 450;
  letter-spacing: -0.005em;
  color: var(--graphite);
  text-decoration: none;
  white-space: nowrap;
  padding-block: 6px;
  transition: color 0.18s ease;
}

.bar-nav a:hover {
  color: var(--ink);
}

.bar-nav a.is-current {
  color: var(--oxide);
}

/* ---------------------------------------------------------- Hero */

.hero {
  padding-block: clamp(52px, 11vh, 132px) clamp(40px, 6vw, 78px);
}

.hero-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  column-gap: var(--gap);
  align-items: end;
}

.hero-name {
  font-size: clamp(2.9rem, 10.2vw, 7.8rem);
  line-height: 0.9;
  font-weight: 640;
  font-stretch: 116%;
  letter-spacing: -0.038em;
  margin-left: -0.035em;
}

.hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.05em;
  margin-bottom: -0.05em;
}

.hero-line-in {
  display: block;
}

.hero-role {
  max-width: 26ch;
  padding-bottom: 0.4em;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.36;
  font-weight: 500;
  font-stretch: 104%;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  column-gap: var(--gap);
  align-items: end;
  margin-top: clamp(26px, 3.6vw, 46px);
}

.hero-lead {
  max-width: 58ch;
  color: var(--ink-soft);
}

/* Betriebsstundenzähler */

.uptime {
  max-width: 30rem;
  margin-left: auto;
  padding: clamp(14px, 1.8vw, 20px) clamp(16px, 2vw, 22px);
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px rgba(22, 26, 24, 0.14);
}

.uptime-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.03em;
  color: var(--graphite);
  text-transform: none;
}

.uptime-grid {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.3rem clamp(16px, 2.6vw, 30px);
  margin-top: 0.45rem;
}

.uptime-cell {
  display: flex;
  align-items: baseline;
  gap: 0.45em;
}

.uptime-num {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.uptime-unit {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--graphite);
}

.uptime-live {
  display: flex;
  align-items: center;
  gap: 0.55em;
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--graphite);
}

.led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--led);
  box-shadow: 0 0 0 3px rgba(79, 165, 113, 0.18);
  animation: led 2.8s ease-in-out infinite;
}

@keyframes led {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.hero-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(26px, 3.4vw, 40px);
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.hero-foot-sep {
  width: 34px;
  height: 1px;
  background: var(--rule);
}

.link-plain {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--oxide);
  padding-bottom: 2px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.link-plain:hover {
  color: var(--oxide);
}

/* ---------------------------------------------------------- Abschnitte */

.blk {
  padding-block: clamp(46px, 7vw, 96px);
}

.blk-grid {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  column-gap: var(--gap);
}

.rail {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--ink);
  padding-top: 0.35em;
  white-space: nowrap;
}

.rail-of {
  margin-left: 0.45em;
  font-weight: 400;
  color: var(--graphite);
}

.rail-night {
  color: var(--night-text);
}

.rail-night .rail-of {
  color: var(--night-muted);
}

.h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.04;
  font-weight: 600;
  font-stretch: 110%;
  letter-spacing: -0.028em;
  margin-bottom: clamp(14px, 1.8vw, 22px);
}

.prose {
  max-width: 62ch;
  text-wrap: pretty;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------- Leistungen */

.specs {
  margin-top: clamp(30px, 4vw, 52px);
}

.spec {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  column-gap: clamp(18px, 3vw, 48px);
  padding-block: clamp(18px, 2.2vw, 26px);
  border-top: 1px solid var(--rule);
}

.spec:last-child {
  border-bottom: 1px solid var(--rule);
}

.spec-term {
  font-size: 1.0625rem;
  font-weight: 600;
  font-stretch: 106%;
  letter-spacing: -0.012em;
  line-height: 1.35;
}

.spec-body p {
  color: var(--ink-soft);
  max-width: 60ch;
}

.spec-tools {
  margin-top: 0.6rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.015em;
  color: var(--graphite);
}

/* ---------------------------------------------------------- Betrieb */

.blk-night {
  background: var(--night);
  color: var(--night-text);
}

.blk-night .h2 {
  color: var(--night-text);
}

.prose-night {
  color: var(--night-muted);
}

.betrieb-split {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  column-gap: clamp(24px, 3.2vw, 44px);
  row-gap: clamp(32px, 5vw, 56px);
  align-items: start;
  margin-top: clamp(30px, 4vw, 52px);
}

.diagram {
  margin: 0;
}

.diagram svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.dg-edge {
  stroke: var(--night-line);
  stroke-width: 1;
}

.dg-box rect {
  fill: var(--night-box);
  stroke: var(--night-line);
  stroke-width: 1;
}

.dg-dash rect {
  fill: none;
  stroke: #b8785c;
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.dg-label text {
  fill: var(--night-text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  font-stretch: 102%;
  letter-spacing: 0.01em;
}

.dg-sub text {
  fill: var(--night-muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.diagram-cap {
  margin-top: 0.85rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.01em;
  color: var(--night-muted);
}

.principles {
  display: grid;
  gap: clamp(20px, 2.6vw, 30px);
  padding-top: 0.3rem;
}

.principle-term {
  font-size: 1rem;
  font-weight: 600;
  font-stretch: 104%;
  letter-spacing: -0.008em;
  color: var(--night-text);
}

.principle-body {
  margin-top: 0.35rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  max-width: 42ch;
  color: var(--night-muted);
}

/* ---------------------------------------------------------- Werdegang */

.stages {
  position: relative;
  margin-top: clamp(30px, 4vw, 50px);
}

.stages::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  bottom: 0.6rem;
  left: var(--tcol);
  width: 1px;
  background: var(--rule);
}

.stage {
  display: grid;
  grid-template-columns: var(--tcol) minmax(0, 1fr);
  column-gap: var(--tgap);
  padding-block: clamp(16px, 2vw, 24px);
}

.stage-time {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  line-height: 1.55;
  color: var(--graphite);
  text-align: right;
  padding-right: clamp(12px, 1.6vw, 22px);
  padding-top: 0.25em;
}

.stage-title {
  font-size: 1.0625rem;
  font-weight: 600;
  font-stretch: 106%;
  letter-spacing: -0.012em;
  line-height: 1.35;
}

.stage-org {
  margin-top: 0.2rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.015em;
  color: var(--graphite);
}

.stage-text {
  margin-top: 0.55rem;
  font-size: 0.9688rem;
  line-height: 1.58;
  max-width: 62ch;
  color: var(--ink-soft);
}

.edu {
  margin-top: clamp(28px, 3.5vw, 46px);
  padding-top: clamp(20px, 2.4vw, 30px);
  border-top: 1px solid var(--rule);
}

.edu-head {
  font-size: 0.75rem;
  font-weight: 600;
  font-stretch: 104%;
  letter-spacing: 0.005em;
  color: var(--graphite);
  margin-bottom: 0.9rem;
  padding-left: calc(var(--tcol) + var(--tgap));
}

.edu-list {
  position: relative;
}

.edu-list::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  bottom: 0.4rem;
  left: var(--tcol);
  width: 1px;
  background: var(--rule);
}

.edu-item {
  display: grid;
  grid-template-columns: var(--tcol) minmax(0, 1fr);
  column-gap: var(--tgap);
  padding-block: 0.5rem;
}

.edu-time {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--graphite);
  text-align: right;
  padding-right: clamp(12px, 1.6vw, 22px);
  line-height: 1.55;
}

.edu-title {
  font-size: 1rem;
  font-weight: 600;
  font-stretch: 104%;
  letter-spacing: -0.008em;
  line-height: 1.4;
}

.edu-text {
  margin-top: 0.3rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  max-width: 62ch;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------- Projekte */

.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: clamp(26px, 3.6vw, 44px) clamp(28px, 3.6vw, 52px);
  margin-top: clamp(30px, 4vw, 52px);
}

.proj-meta {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.015em;
  color: var(--graphite);
}

.proj-title {
  margin-top: 0.4rem;
  font-size: 1.0625rem;
  font-weight: 600;
  font-stretch: 106%;
  letter-spacing: -0.012em;
  line-height: 1.35;
}

.proj-text {
  margin-top: 0.45rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------- Open Source */

.repos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: clamp(20px, 2.6vw, 32px) clamp(28px, 3.6vw, 52px);
  align-content: start;
  margin-top: clamp(30px, 4vw, 52px);
}

.repo {
  padding-top: 0.7rem;
  border-top: 1px solid var(--rule);
}

.repo-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.repo-link {
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.repo-link:hover {
  color: var(--oxide);
  border-bottom-color: var(--oxide);
}

.repo-text {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 40ch;
}

.repo-lang {
  flex: none;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  color: var(--graphite);
}

.repos-more {
  margin-top: clamp(28px, 3.4vw, 44px);
  font-family: var(--mono);
  font-size: 0.8125rem;
}

/* ---------------------------------------------------------- Kontakt */

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: clamp(22px, 3vw, 36px) clamp(24px, 3vw, 44px);
  margin-top: clamp(30px, 4vw, 48px);
  padding-top: clamp(20px, 2.6vw, 30px);
  border-top: 1px solid var(--rule);
}

.contact-key {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  color: var(--graphite);
}

.contact-val {
  margin-top: 0.4rem;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.008em;
}

.contact-val a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.contact-val a:hover {
  color: var(--oxide);
  border-bottom-color: var(--oxide);
}

/* ---------------------------------------------------------- Schriftfeld */

.foot {
  padding-block: clamp(44px, 6vw, 72px) clamp(36px, 5vw, 56px);
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
}

.sheet-block {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 0.9fr;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.sheet-cell {
  padding: clamp(12px, 1.4vw, 16px) clamp(12px, 1.6vw, 18px);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.sheet-cell:last-of-type {
  border-right: none;
}

.sheet-key {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  color: var(--graphite);
}

.sheet-val {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink);
}

.sheet-val a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.sheet-val a:hover {
  color: var(--oxide);
  border-bottom-color: var(--oxide);
}

.sheet-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  padding: 0.6rem clamp(12px, 1.6vw, 18px);
}

.sheet-foot {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.02em;
  color: var(--graphite);
}

.sheet-foot-end {
  color: var(--ink);
}

.legal {
  margin-top: clamp(20px, 2.6vw, 30px);
  display: grid;
  gap: 2px;
  justify-items: start;
}

.legal-box {
  width: 100%;
}

.legal-sum {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  color: var(--graphite);
  cursor: pointer;
  padding-block: 0.35rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.6em;
}

.legal-sum::-webkit-details-marker {
  display: none;
}

.legal-sum::before {
  content: "+";
  font-size: 0.875rem;
  color: var(--oxide);
  width: 0.7em;
  display: inline-block;
}

.legal-box[open] .legal-sum::before {
  content: "−";
}

.legal-sum:hover {
  color: var(--ink);
}

.legal-body {
  padding: 0.4rem 0 0.9rem 1.3em;
  max-width: 74ch;
}

.legal-body p {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}

.legal-body p:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------- Bewegung */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .hero-line-in {
    animation: rise 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }

  .hero-line:nth-child(2) .hero-line-in {
    animation-delay: 0.09s;
  }

  .hero-role,
  .hero-lead,
  .uptime,
  .hero-foot {
    animation: soften 0.7s ease-out both;
  }

  .hero-role {
    animation-delay: 0.22s;
  }

  .hero-lead {
    animation-delay: 0.3s;
  }

  .uptime {
    animation-delay: 0.38s;
  }

  .hero-foot {
    animation-delay: 0.46s;
  }
}

@keyframes rise {
  from {
    transform: translateY(104%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes soften {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .led {
    animation: none;
  }
}

/* ---------------------------------------------------------- Enger */

@media (max-width: 900px) {
  .betrieb-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .principles {
    order: -1;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  }

  .sheet-block {
    grid-template-columns: 1fr 1fr;
  }

  .sheet-cell:last-of-type {
    border-right: 1px solid var(--rule);
  }
}

@media (max-width: 760px) {
  .diagram {
    margin-inline: calc(-1 * var(--pad));
    padding-inline: var(--pad);
  }

  .dg-label text {
    font-size: 18px;
  }

  .dg-sub text {
    font-size: 13px;
  }

  .blk-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.9rem;
  }

  .hero-head,
  .hero-body {
    grid-template-columns: minmax(0, 1fr);
    row-gap: clamp(18px, 3.4vw, 28px);
  }

  .hero-head {
    align-items: start;
  }

  .hero-role {
    max-width: 40ch;
    padding-bottom: 0;
    font-size: 1.0625rem;
  }

  .uptime {
    margin-left: 0;
    max-width: 34rem;
  }

  .rail {
    padding-top: 0;
  }

  .rail-of {
    margin-left: 0.45em;
  }

  .edu-head {
    padding-left: 0;
  }

  .spec,
  .stage,
  .edu-item {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.45rem;
  }

  .stages::before,
  .edu-list::before {
    display: none;
  }

  .stage-time,
  .edu-time {
    text-align: left;
    padding-right: 0;
    padding-top: 0;
  }

  .hero-name {
    font-size: clamp(2.9rem, 15vw, 5rem);
  }

  .uptime-live {
    margin-left: 0;
  }
}

@media (max-width: 620px) {
  html {
    scroll-padding-top: 84px;
  }

  .bar-in {
    flex-wrap: wrap;
    padding-block: 8px;
    gap: 4px;
    min-height: 0;
  }

  .bar-brand {
    display: none;
  }

  .bar-nav {
    width: 100%;
    flex-wrap: wrap;
    row-gap: 2px;
    column-gap: 14px;
    overflow: visible;
  }

  .bar-nav a {
    font-size: 0.8125rem;
    padding-block: 3px;
  }
}

@media (max-width: 560px) {
  .sheet-block {
    grid-template-columns: minmax(0, 1fr);
  }

  .sheet-cell {
    border-right: none;
  }

  .sheet-cell:last-of-type {
    border-right: none;
  }

  .bar-brand {
    font-size: 0.6875rem;
  }

  .bar-in {
    gap: 12px;
  }
}

/* ---------------------------------------------------------- Druck */

@media print {
  .bar,
  .skip,
  .legal,
  .hero-foot {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 10pt;
  }

  .blk-night,
  .foot {
    background: #fff;
    color: #000;
    border-top: 1px solid #999;
  }

  .blk-night .h2,
  .principle-term,
  .dg-label text {
    color: #000;
    fill: #000;
  }

  .prose-night,
  .principle-body,
  .diagram-cap {
    color: #333;
  }

  .blk {
    padding-block: 12pt;
    break-inside: avoid;
  }

  .sheet-block {
    border-color: #000;
    background: #fff;
  }

  .dg-box rect {
    fill: #fff;
    stroke: #777;
  }

  .dg-edge,
  .dg-dash rect {
    stroke: #777;
  }

  .dg-sub text,
  .dg-dash text {
    fill: #333;
  }
}
