@import url("https://fonts.bunny.net/css?family=jetbrains-mono:400,700");
@import url("https://fonts.bunny.net/css?family=silkscreen:400,700");

:root {
  --mono: 'JetBrains Mono', 'DejaVu Sans Mono', 'Cascadia Mono', Consolas, 'Courier New', monospace;
  --pix: 'Silkscreen', 'Lacquer', 'Courier New', monospace;
  --w: min(66rem, calc(100% - 2rem));
  --divider-color: rgba(70, 60, 200, 0.35);
  --bg: #f5f7fc;
  --h1: #14183a;
  --box-border: #4a45c8;
  --box-bg: rgba(255, 255, 255, 0.9);
  --text: #1f2447;
  --link: var(--c3);
  --hover: #c4126f;
  --mute: #5b6090;
  --line: #8c88d8;
  --ul: var(--c3);
  --em: #a64b00;
  --sel-bg: #c4126f;
  --sel-text: #ffffff;
  --r: #c42335;
  --rb: #fde3e6;
  --a: #a85d00;
  --ab: #fff1dc;
  --g: #1d7a43;
  --gb: #e3f4ea;
  --on: #ffffff;
  --c1: #d1197a;
  --c2: #c27400;
  --c3: #00798c;
  --c4: #b3adf5;
  --plasma-a: #cfd4f3;
  --plasma-b: #f4bddb;
  --cursor-fill: #14183a;
  --cursor-blend: normal;
  --nav-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.88));
  --zebra: rgba(74, 69, 200, 0.07);
  --pre-bg: rgba(255, 255, 255, 0.92);
  --scan: rgba(0, 0, 0, 0.035);
  --vig: rgba(60, 60, 120, 0.14);
}

body[data-theme="dark"] {
  --divider-color: rgba(106, 92, 255, 0.5);
  --bg: #06050f;
  --h1: #ffffff;
  --box-border: #6a5cff;
  --box-bg: rgba(12, 9, 38, 0.86);
  --text: #b9c2ff;
  --link: var(--c3);
  --hover: #ff48b0;
  --mute: #8f89c9;
  --line: #4b3fc4;
  --ul: var(--c3);
  --em: #ffd23f;
  --sel-bg: #ff48b0;
  --sel-text: #06050f;
  --r: #ff5470;
  --rb: #3a0d18;
  --a: #ffb000;
  --ab: #3a2600;
  --g: #5dff9a;
  --gb: #0d2a1a;
  --on: #06050f;
  --c1: #ff48b0;
  --c2: #ffb000;
  --c3: #40f0ff;
  --c4: #4b3fc4;
  --plasma-a: #3a2fa8;
  --plasma-b: #ff48b0;
  --cursor-fill: #40f0ff;
  --cursor-blend: difference;
  --nav-bg: linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgba(12, 9, 38, 0.86));
  --zebra: rgba(40, 30, 110, 0.45);
  --pre-bg: rgba(0, 0, 0, 0.6);
  --scan: rgba(0, 0, 0, 0.16);
  --vig: rgba(0, 0, 0, 0.6);
}

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

@media (pointer: fine) {
  *,
  *::before,
  *::after {
    cursor: none !important;
  }
}

.custom-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 11px;
  height: 20px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  background: var(--cursor-fill);
  mix-blend-mode: var(--cursor-blend);
  opacity: 1;
  transition: transform 0.08s steps(2), width 0.1s steps(2), height 0.1s steps(2), opacity 0.15s linear;
}

.custom-cursor.is-link {
  width: 22px;
  height: 22px;
  background: transparent;
  border: 2px solid var(--cursor-fill);
}

.custom-cursor.is-down {
  transform: translate(-50%, -50%) scale(0.75);
}

html {
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-color: var(--box-border) transparent;
}

body {
  position: relative;
  width: var(--w);
  margin: 0 auto;
  padding: 7.5rem 1rem 3rem;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, var(--scan) 0 1px, transparent 1px 3px);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9001;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, var(--vig) 100%);
}

#demo-plasma {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(90deg, #000 0, rgba(0, 0, 0, 0.3) 22%, rgba(0, 0, 0, 0.3) 78%, #000 100%);
  mask-image: linear-gradient(90deg, #000 0, rgba(0, 0, 0, 0.3) 22%, rgba(0, 0, 0, 0.3) 78%, #000 100%);
}

::selection,
mark {
  background: var(--sel-bg);
  color: var(--sel-text);
}

::-webkit-scrollbar {
  width: 10px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background: var(--box-border);
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem max(1rem, calc((100% - var(--w)) / 2 + 1rem)) 0.9rem;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.navbar::after,
.fading-line {
  content: "";
  display: block;
  background: linear-gradient(180deg, var(--c1) 0 2px, var(--c2) 2px 4px, var(--c3) 4px 6px, var(--c4) 6px 8px, var(--c3) 8px 10px, var(--c2) 10px 12px) 0 0 / 100% 12px repeat-y;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.navbar::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 8px;
}

.fading-line {
  width: 100%;
  height: 8px;
  margin: 2.5rem 0;
}

.navbar-left {
  display: flex;
  align-items: center;
}

.navbar a,
.navbar a:hover {
  border-bottom: 0;
}

.navbar-left a.logo-link,
.navbar-left a.logo-link:hover {
  display: block;
  padding: 0;
  border-bottom: 0;
  color: inherit;
  background: none;
  box-shadow: none;
  text-decoration: none;
}

.navbar-ascii {
  margin: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1;
  letter-spacing: -0.5px;
  white-space: pre;
  color: var(--h1);
  text-shadow: -1px 0 var(--c1), 1px 0 var(--c3), 0 0 12px var(--c4);
}

.navbar-ascii strong {
  color: var(--c2);
}

.navbar-right {
  display: flex;
  gap: 6px;
  align-items: center;
}

.controls-container {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 2rem;
  align-items: center;
}

.theme-toggle {
  display: inline-block;
  padding: 6px 8px;
  font-family: var(--mono);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--c3);
  user-select: none;
}

.theme-toggle:hover {
  color: var(--on);
  background: var(--c3);
}

.nav-icon,
.nav-icon:hover,
.nav-icon:focus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 3rem;
  height: 3rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  text-decoration: none;
  color: var(--c3);
  font: inherit;
  line-height: 1;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.nav-icon:hover {
  background: var(--c3);
  color: var(--on);
}

.nav-icon svg {
  display: block;
  width: 1.7rem;
  height: 1.7rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rss-toggle,
.rss-toggle:hover,
.nav-btn,
.nav-btn:hover {
  display: inline-block;
  padding: 9px;
  font-size: 1.8rem;
  line-height: 1;
  border-bottom: 0;
  text-decoration: none;
  background: none;
  box-shadow: none;
  color: var(--text);
}

.rss-toggle:hover,
.nav-btn:hover {
  background: var(--c3);
}

.rss-toggle svg,
.nav-btn svg {
  display: block;
  width: 1.3rem;
  height: 1.3rem;
  fill: var(--c3);
}

.rss-toggle:hover svg,
.nav-btn:hover svg {
  fill: var(--on);
}

h1 {
  margin: 0.4em 0;
  font-family: var(--pix);
  font-size: clamp(2rem, 8vw, 3.6rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--h1);
  text-shadow: 3px 3px 0 var(--c1), 5px 5px 0 var(--c4);
}

h2 {
  margin: 0.8em 0 0.4em;
  font-family: var(--pix);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--c1);
  text-shadow: 2px 2px 0 var(--c4);
}

h3 {
  margin: 0.6em 0 0.3em;
  font-family: var(--pix);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--c2);
  text-shadow: 2px 2px 0 var(--c4);
  break-after: avoid;
}

#sitrep-slot .box {
  margin-top: 1.4rem;
}

/* Platz für die Sitrep-Box reservieren, damit die Seite beim Nachladen nicht springt */
#sitrep-slot {
  display: flow-root;
  min-height: var(--sitrep-h, 5.5rem);
  transition: min-height 0.3s ease;
}

#sitrep-slot > * {
  opacity: 0;
  transition: opacity 0.4s ease;
}

#sitrep-slot.is-loaded {
  min-height: 0;
}

#sitrep-slot.is-loaded > * {
  opacity: 1;
}

#sitrep-slot.is-empty {
  min-height: 0;
}

@media print {
  #sitrep-slot {
    min-height: 0;
  }
}

em {
  font-style: normal;
  font-weight: 700;
  color: var(--em);
}

a {
  padding: 0 2px;
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px dashed var(--ul);
}

a:hover {
  color: var(--on);
  background: var(--link);
  border-bottom-color: transparent;
  box-shadow: 3px 3px 0 var(--c1);
}

a:focus-visible,
.st-btn:focus-visible,
.accordion-header:focus-visible,
.scroll-to-top:focus-visible,
.nav-icon:focus-visible {
  outline: 2px dashed var(--c2);
  outline-offset: 3px;
}

pre {
  margin: 0;
}

ul {
  margin: 0.3rem 0;
  padding-left: 1.2rem;
  list-style-type: "> ";
}

li {
  margin-bottom: 0.45rem;
}

li::marker {
  color: var(--c1);
  font-weight: 700;
}

.meta,
.src {
  font-size: 0.85em;
  color: var(--mute);
}

@media screen {
  h1:has(+ .meta) {
    margin-bottom: 0.15em;
  }

  h1 + .meta {
    margin-top: 0;
  }
}

.small-text {
  font-size: 0.72rem;
  color: var(--mute);
}

.signature::after {
  content: "_";
  color: var(--c1);
  text-shadow: 0 0 8px var(--c1);
  animation: blink 1s step-end infinite;
}

.box {
  margin: 12px 0;
  padding: 10px 14px;
  border: 3px double var(--box-border);
  background: var(--box-bg);
  box-shadow: 5px 5px 0 var(--c4);
  border-radius: 0;
}

.level {
  border-color: var(--r);
  box-shadow: 5px 5px 0 var(--rb);
}

.tag {
  display: inline-block;
  padding: 0 0.55em;
  font-size: 0.8em;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  color: var(--on);
}

.R {
  background: var(--r);
}

.A {
  background: var(--a);
}

.G {
  background: var(--g);
}

.wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85em;
}

th,
td {
  padding: 5px 8px;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--line);
}

th {
  background: var(--c3);
  color: var(--on);
}

td {
  background: var(--box-bg);
}

tr:nth-child(even) td {
  background: var(--zebra);
}

.foot {
  margin-top: 16px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 7pt;
  line-height: 1.5;
  color: var(--mute);
}

.foot .note {
  margin: 1.4em 0 0;
  font-size: 8pt;
  line-height: 1.5;
}

.logo-container {
  max-width: 100%;
  margin: 1rem 0;
  padding-right: 20px;
  text-align: right;
}

.glitch-logo {
  display: inline-block;
  width: 120px;
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.ascii-container {
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  margin: 0 auto;
  overflow-x: auto;
  text-align: start;
}

.ascii-art {
  display: inline-block;
  margin: 0;
  padding: 0.5rem 0;
  font-family: var(--mono);
  font-size: clamp(0.5rem, 2.5vw, 0.8rem);
  line-height: 1;
  letter-spacing: -0.5px;
  white-space: pre;
  color: var(--h1);
}

.whoami {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.image-box {
  flex-shrink: 0;
  width: 250px;
  height: 250px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.image-box img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 100%;
  object-fit: cover;
}

.accordion-container {
  margin: 0.35rem 0;
}

.accordion-header {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 0 0.5rem 0 0.3rem;
  background: none;
  color: var(--text);
  cursor: pointer;
}

.accordion-header h2 {
  margin: 0.25em 0;
}

.dots {
  display: inline-block;
  width: 0.875em;   /* = Advance des "+" in Silkscreen */
  height: 0.625em;  /* = Versalhöhe in Silkscreen (5 Pixel) */
  vertical-align: baseline;
  overflow: visible;
  fill: currentColor;
  filter: drop-shadow(2px 2px 0 var(--c4)); /* wie text-shadow der h2 */
}

/* "+" -> "x": die Arme schwenken pixelweise im Uhrzeigersinn um 45 Grad */
.dots .v {
  transition: transform 0.18s ease-out;
  transition-delay: calc((7 - var(--i)) * 35ms); /* schließen: rückwärts */
}

.accordion-header.active .dots .v {
  transition-delay: calc(var(--i) * 35ms); /* öffnen: vorwärts */
  transform: translate(var(--dx), var(--dy));
}

.accordion-header:hover {
  background: var(--c2);
}

.accordion-header:hover h2 {
  color: var(--on);
  text-shadow: none;
}

.accordion-header:hover .dots {
  filter: none;
}

.accordion-body {
  display: none;
  margin: 0 0 0.6rem 0.9rem;
  padding: 0.3em 0 0.3em 1.2rem;
  border-left: 3px double var(--box-border);
  color: var(--text);
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.accordion-body.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.accordion-body.tree {
  padding-left: 1rem;
}

.accordion-body.tree pre {
  margin: 0;
  padding: 1em;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.45;
  white-space: pre;
  color: var(--c3);
  background: var(--pre-bg);
  border: 3px double var(--box-border);
}

.arrow-space {
  width: 0.5em;
}

.featured-projects {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
}

.project-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex-shrink: 0;
  width: 320px;
  min-height: 220px;
  padding: 6px;
  overflow: hidden;
  text-align: left;
  background: var(--box-bg);
  border: 3px double var(--box-border);
  border-radius: 0;
  box-shadow: 6px 6px 0 var(--c4);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s steps(6), transform 0.6s steps(6), box-shadow 0.1s linear, border-color 0.1s linear;
}

.project-box::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.3) 0 1px, transparent 1px 3px);
}

.project-box.fly-in {
  opacity: 1;
  transform: none;
}

.project-box:hover {
  transform: translate(-3px, -3px);
  border-color: var(--c1);
  box-shadow: 9px 9px 0 var(--c1);
}

.project-box h3 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--c1);
  text-shadow: 1px 1px 0 var(--c4);
  overflow-wrap: anywhere;
}

.project-box .pb-sub {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text);
}

.pb-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: auto 0 0;
  padding: 8px 0 0;
  list-style: none;
}

.pb-stack li {
  margin: 0;
  padding: 2px 8px;
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--link);
  background: var(--zebra);
  border: 1px solid var(--box-border);
  transition: border-color 0.1s linear;
}

.project-box:hover .pb-stack li {
  border-color: var(--c1);
}

.project-box a,
.project-box a:hover {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 12px;
  color: var(--link);
  background: none;
  border-bottom: 0;
  box-shadow: none;
  text-decoration: none;
}

.hidden-on-load {
  height: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.visible-on-scroll {
  height: auto;
  overflow: visible;
  visibility: visible;
  opacity: 1;
}

.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  left: auto !important;
  right: 2rem !important;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--box-bg);
  border: 3px double var(--box-border);
  box-shadow: 4px 4px 0 var(--c4);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.2s steps(3), transform 0.2s steps(3), background 0.1s linear;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: var(--c1);
  border-color: var(--c1);
}

.scroll-to-top:active {
  transform: translate(2px, 2px);
}

.scroll-to-top svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: var(--c3);
}

.scroll-to-top:hover svg {
  fill: var(--on);
}

.biolinks {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  padding-top: 1.6rem;
}

.biolinks p {
  margin: 0;
}

.biolinks a,
.biolinks a:hover {
  display: inline-block;
  padding: 0;
  background: none;
  border-bottom: 0;
  box-shadow: none;
  text-decoration: none;
  color: var(--mute);
  transform: scale(var(--s, 1));
  transform-origin: 50% 100%;
  transition: transform 0.12s ease-out;
}

.biolinks a:hover {
  filter: drop-shadow(3px 3px 0 var(--c1));
}

.biolinks p a,
.biolinks p a:hover {
  color: var(--link);
}

.biolinks p a:hover {
  filter: none;
  transform: scale(var(--s, 1)) rotate(-5deg);
}

.biolinks img {
  display: block;
  width: 32px;
  height: 32px;
}

.hidden-flag::before {
  content: "46 4c 41 47 7b 53 54 59 4c 33 5f 53 48 33 33 54 5f 48 40 43 4b 33 52 7d";
  position: absolute;
  left: -9999px;
  top: -9999px;
  visibility: hidden;
  opacity: 0;
  font-size: 0;
  color: transparent;
  z-index: -1;
}

.w {
  display: inline-block;
  white-space: pre;
  animation: wave 1.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.14s);
}

@keyframes wave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.12em); }
}

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

@keyframes fadeOut {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-10px); }
}

.fade-out {
  animation: fadeOut 0.4s ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {
  .w {
    animation: none;
  }

  .biolinks a {
    transition: none;
  }

  .dots .v {
    transition: none;
  }
}

@media (min-width: 601px) {
  .featured-projects {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 32px 28px;
  }
}

@media (max-width: 768px) {
  #demo-plasma {
    opacity: 0.25;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

@media (max-width: 600px) {
  body {
    padding: 6rem 0.5rem 2rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .navbar {
    padding: 0.6rem 1rem 0.8rem;
  }

  .navbar-ascii {
    font-size: 0.6rem;
  }

  .box {
    font-size: 1rem;
  }

  .project-box {
    width: 100%;
    height: auto;
  }

  .project-box .pb-sub {
    font-size: 0.95rem;
  }

  .pb-stack li {
    font-size: 0.75rem;
  }

  .scroll-to-top {
    bottom: 1rem;
    right: 1rem !important;
    width: 2.6rem;
    height: 2.6rem;
  }

  .biolinks {
    gap: 12px;
  }

  .biolinks img {
    width: 28px;
    height: 28px;
  }
}

@media print {
  @page {
    size: A4;
    margin: 9mm;
  }

  body,
  body[data-theme="dark"] {
    --divider-color: rgba(28, 28, 28, 0.3);
    --bg: #fff;
    --h1: #000;
    --box-border: #000;
    --box-bg: rgba(243, 243, 243, 0.5);
    --text: #1c1c1c;
    --link: #1c1c1c;
    --hover: #21a5e3;
    --mute: #555;
    --line: #000;
    --ul: #000;
    --em: #000;
    --r: #b3261e;
    --rb: #fbe9e7;
    --a: #a85d00;
    --ab: #fff1dc;
    --g: #2e6b34;
    --gb: #e6f2e6;
    --on: #000;
    --c1: #000;
    --c2: #000;
    --c3: #000;
    --c4: #555;
  }

  body {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    font-size: 8.5pt;
    line-height: 1.35;
    background: #fff;
  }

  body::before,
  body::after,
  #demo-plasma {
    display: none !important;
  }

  .navbar {
    position: static;
    justify-content: flex-end;
    padding: 0 0 4px;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .navbar::after {
    display: none;
  }

  .navbar-right,
  .theme-toggle,
  .rss-toggle,
  .controls-container,
  .custom-cursor,
  .scroll-to-top,
  .biolinks,
  .np {
    display: none;
  }

  .signature::after {
    display: none;
  }

  .navbar-ascii {
    font-size: 0.6rem;
    letter-spacing: -0.04em;
    text-shadow: none;
  }

  .navbar-ascii strong {
    color: #000;
  }

  h1,
  h2,
  h3 {
    text-shadow: none;
    color: #000;
  }

  .dots {
    filter: none;
  }

  h1 {
    margin: 0.2em 0 0.1em;
    font-size: 2.6em;
  }

  h3 {
    margin-top: 0.55em;
    font-size: 1.3em;
  }

  .w {
    animation: none;
    transform: none;
  }

  a,
  a:hover {
    padding: 0;
    background: none;
    box-shadow: none;
    color: #1c1c1c;
  }

  em {
    color: #000;
  }

  .box,
  .level {
    border: 1px solid var(--box-border);
    box-shadow: none;
  }

  .level {
    border-width: 2px;
    border-color: var(--r);
  }

  .tag {
    border: 1px solid;
  }

  .R {
    color: var(--r);
    background: var(--rb);
  }

  .A {
    color: var(--a);
    background: var(--ab);
  }

  .G {
    color: var(--g);
    background: var(--gb);
  }

  th {
    background: var(--box-bg);
    color: #000;
  }

  td,
  tr:nth-child(even) td {
    background: none;
  }

  th,
  td {
    padding: 2px 4px;
    border-color: #000;
  }

  table {
    font-size: 0.8em;
  }

  li {
    margin-bottom: 0.15rem;
  }

  .foot {
    margin-top: 6px;
    padding-top: 4px;
    font-size: 7pt;
    line-height: 1.25;
  }

  .foot .note {
    margin-top: 1.3em;
    font-size: 8pt;
    line-height: 1.25;
  }

  .fading-line {
    height: 1px;
    margin: 10px 0;
    background: linear-gradient(to right, transparent, var(--divider-color), transparent);
    -webkit-mask-image: none;
    mask-image: none;
    animation: none;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  tr,
  li {
    break-inside: avoid;
  }
}

.quote {
  font-family: 'Lacquer', var(--pix);
  font-size: 1.5em;
  line-height: 1.3;
}

.po {
  display: none;
}

@media print {
  .po {
    display: inline;
  }
}

/* ── stack section ─────────────────────────────────────── */

.stack-section {
  margin-bottom: 1.1rem;
}

.stack-section:last-child {
  margin-bottom: 0.2rem;
}

.stack-heading {
  margin: 0 0 0.45em;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--c2);
  font-weight: 400;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.stack-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
  padding: 2px 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--link);
  background: var(--zebra);
  border: 1px solid var(--box-border);
  white-space: nowrap;
}

.stack-years {
  font-size: 0.65rem;
  color: var(--mute);
  opacity: 0.8;
}

.stack-note {
  margin: 0.6rem 0 0;
  font-size: 0.85em;
  line-height: 1.5;
  color: var(--mute);
}

/* ── external links ────────────────────────────────────── */

body:not([data-ext="off"]) a[href^="http"]:not([href^="https://january1073.xyz"]):not(.biolinks a):not(.project-box a)::after,
body:not([data-ext="off"]) .project-box a[href^="http"]:not([href^="https://january1073.xyz"]) h3::after {
  content: "\00a0↗";
  content: "\00a0↗" / " (external link)";
  font-size: 0.8em;
  opacity: 0.7;
}

@media print {
  a[href^="http"]::after,
  .project-box h3::after {
    content: none;
  }
}

/* Meta-Zeile mit rechtsbündigem Link (sitrep) */
.meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.2rem 1rem;
}
