/* hudecity.de 2026
   Dunkles, bildgetriebenes Layout. Ein Akzent (Signal-Orange).
   Formen: Flächen 14px Radius, Bedienelemente als Pille. */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}
/* C64-Schrift für Logo-Schriftzug und Bootzeile (SIL Open Font License, siehe fonts/) */
@font-face {
  font-family: "Sixtyfour";
  src: url("../fonts/sixtyfour-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0c0c0d;
  --bg-2: #131315;
  --bg-3: #1b1b1e;
  --bg-4: #242428;
  --line: rgb(255 255 255 / .08);
  --line-2: rgb(255 255 255 / .14);
  --text: #edebe7;
  --text-2: #b9b7b2;
  --muted: #8e8c88;
  /* Tiefes Blau. --accent für Flächen, Linien, Logo und große Schrift (weiße Schrift
     darauf: Kontrast 5:1). --accent-text für kleine Schrift auf Schwarz (Kontrast > 7:1). */
  --accent: #2b5cff;
  --accent-2: #1f4ee8;
  --accent-ink: #ffffff;
  --accent-text: #8aa8ff;
  --accent-soft: rgb(43 92 255 / .22);
  --c64-field: #14246b;
  --retro: "Sixtyfour", var(--mono);
  --ok: #7bd389;
  --warn: #f2c14e;
  --bad: #ff6b6b;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --r: 14px;
  --r-sm: 8px;
  --pill: 999px;
  --wrap: 1360px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 64px;
  --ease: cubic-bezier(.16, 1, .3, 1);

  /* Ebenen */
  --z-header: 50;
  --z-menu: 60;
  --z-dialog: 80;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.i { width: 1.15em; height: 1.15em; flex: none; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 16px; border-radius: var(--pill); }
.skip:focus { top: 12px; }

/* Grain: fest, ohne Klicks, damit Scrollen nicht leidet */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Logo ---------- */
.logo-mark { width: auto; height: 32px; overflow: visible; color: var(--accent); }
.logo-mark .lm-via, .logo-mark .lm-label { fill: var(--bg); }
/* C64: hellblaues F2 auf dunkelblauem Feld im blauen Rahmen */
.logo-c64 .lm-frame { fill: var(--accent); }
.logo-c64 .lm-field { fill: var(--c64-field); transition: fill .15s steps(1); }
.logo-c64 .lm-px { fill: var(--accent-text); transition: fill .15s steps(1); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 650; letter-spacing: -.02em; font-size: 19px; }
/* Foto in 8 Bit (assets/img/logo-foto.png) im blauen Rahmen */
.logo-foto .lm-frame { fill: var(--accent); }
.brand .logo-foto { height: 40px; }
/* Beim Laden baut sich das Bild in Streifen von oben auf, wie vom C64 geladen */
.logo-foto.is-boot .lm-photo { animation: load-in 1.2s steps(16) .25s both; }
@keyframes load-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
/* Schriftzug: hudecity.de, darunter der Untertitel aus site.config.yml */
.brand-word { display: grid; gap: 5px; font: 400 14px/1 var(--retro); letter-spacing: 0; color: var(--accent-text); }
.brand-word b { font-weight: 400; }
.brand-word small { font-size: 7.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
/* Hover: inverse Darstellung wie der Reverse-Modus des C64 */
.brand:hover .logo-c64 .lm-field { fill: var(--accent-text); }
.brand:hover .logo-c64 .lm-px { fill: var(--c64-field); }
.brand:hover .lm-pad { animation: pad-pulse .6s var(--ease) calc(var(--i) * 70ms) 1; }
@keyframes pad-pulse { 40% { fill: var(--text); } }

/* ---------- Header & Navigation ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header); height: var(--header-h);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid, .site-header.is-menu {
  background: rgb(12 12 13 / .78);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px;
  padding: 0 14px; border-radius: var(--pill); color: var(--text-2); font-size: 15px; font-weight: 500;
  background: none; border: 0; cursor: pointer; white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.nav-link:hover, .nav-item:focus-within > .nav-link { color: var(--text); background: rgb(255 255 255 / .06); }
.nav-link[aria-current="page"], .nav-link.is-active { color: var(--text); }
.nav-link[aria-current="page"]::after, .nav-link.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--accent);
}
.nav-link .caret { width: 12px; height: 12px; transition: transform .25s var(--ease); }
.nav-item { position: relative; }
.nav-item:hover .caret, .nav-item:focus-within .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; width: 380px; padding: 8px;
  background: rgb(22 22 24 / .96); border: 1px solid var(--line-2); border-radius: var(--r);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / .7);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px);
  transition: opacity .2s var(--ease), transform .25s var(--ease), visibility .2s;
}
.dropdown::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dd-link { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 8px; border-radius: 10px; transition: background-color .2s; }
.dd-link:hover { background: rgb(255 255 255 / .06); }
.dd-link img, .dd-link .dd-ph { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; background: var(--bg-3); }
.dd-link strong { display: block; font-size: 15px; font-weight: 600; }
.dd-link small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; }

.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--pill);
  border: 1px solid var(--line-2); background: rgb(255 255 255 / .03); cursor: pointer; color: var(--text);
  transition: background-color .2s, border-color .2s, transform .15s;
}
.icon-btn:hover { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .22); }
.icon-btn:active { transform: scale(.96); }
.search-btn { width: auto; padding: 0 8px 0 12px; gap: 10px; display: inline-flex; align-items: center; color: var(--text-2); font-size: 14px; }
.search-btn kbd { font: 500 11px var(--mono); padding: 3px 6px; border-radius: 5px; background: var(--bg-4); color: var(--muted); }
.menu-btn { display: none; }

/* Mobiles Menü: Vollbild */
.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu); background: var(--bg);
  display: flex; flex-direction: column; padding: calc(var(--header-h) + 8px) var(--gutter) 32px;
  overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu .mm-close { position: absolute; top: 12px; right: var(--gutter); }
.mm-brand { position: absolute; top: 17px; left: var(--gutter); }
.mm-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mm-link {
  display: grid; grid-template-columns: 1fr 88px; align-items: center; gap: 16px; min-height: 76px;
  padding: 10px 10px 10px 18px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line);
  transform: translateY(14px); opacity: 0; transition: transform .5s var(--ease), opacity .5s var(--ease);
  transition-delay: calc(var(--n) * 45ms);
}
.mobile-menu.is-open .mm-link { transform: none; opacity: 1; }
.mm-link strong { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.mm-link strong .i { color: var(--accent); }
.mm-link small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.mm-link img, .mm-link .dd-ph { width: 88px; height: 60px; object-fit: cover; border-radius: 8px; background: var(--bg-3); }
.mm-link[aria-current="page"] { border-color: var(--accent); }
.mm-foot { margin-top: auto; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 1020px) {
  .nav, .search-btn .label, .search-btn kbd { display: none; }
  .search-btn { width: 40px; padding: 0; justify-content: center; }
  .menu-btn { display: inline-grid; }
  .header-actions { margin-left: auto; }
}

/* ---------- Buttons, Chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: var(--pill);
  font-weight: 600; font-size: 15px; white-space: nowrap; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: rgb(12 12 13 / .45); border-color: rgb(255 255 255 / .28); color: var(--text); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: rgb(255 255 255 / .55); }
.btn .i { transition: transform .25s var(--ease); }
.btn:hover .i-move { transform: translateX(3px); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: var(--pill);
  border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font-size: 14px; cursor: pointer;
  white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { color: var(--text); border-color: rgb(255 255 255 / .3); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip .count { font: 500 12px var(--mono); opacity: .6; }
.cat-label { display: inline-flex; align-items: center; gap: 6px; font: 500 12.5px var(--mono); color: var(--accent-text); text-transform: lowercase; }
.cat-label .i { width: 14px; height: 14px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--muted); font: 400 13px var(--mono); }
.meta > span { display: inline-flex; align-items: center; gap: 6px; }
.meta .i { width: 14px; height: 14px; }

/* ---------- Bild-Platzhalter, wenn ein Beitrag kein Bild hat ---------- */
.ph {
  position: relative; display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden;
  background:
    radial-gradient(120% 90% at 0% 0%, rgb(43 92 255 / .28), transparent 55%),
    repeating-linear-gradient(0deg, rgb(255 255 255 / .035) 0 1px, transparent 1px 4px),
    var(--bg-3);
}
.ph span { font: 700 clamp(48px, 9vw, 96px)/1 var(--mono); color: rgb(255 255 255 / .12); letter-spacing: -.04em; text-transform: uppercase; }
.ph-icon .i { width: 38%; height: 38%; max-width: 160px; color: rgb(255 255 255 / .16); }

/* ---------- Karten ---------- */
.cards { display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; gap: 14px; }
.card-media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--bg-3); isolation: isolate; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; }
.card-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.card:hover .card-media img { transform: scale(1.045); }
.card-title { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -.015em; text-wrap: balance; }
.card-title a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card-title { color: #fff; }
.card-body { display: grid; gap: 8px; }
.card-excerpt { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }

.cards.is-featured > .card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: center; }
.cards.is-featured > .card:first-child .card-media { aspect-ratio: 16 / 10; }
.cards.is-featured > .card:first-child .card-title { font-size: clamp(26px, 3vw, 38px); letter-spacing: -.03em; line-height: 1.12; }
.cards.is-featured > .card:first-child .card-excerpt { -webkit-line-clamp: 4; font-size: 16.5px; }
@media (max-width: 760px) {
  .cards.is-featured > .card:first-child { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Abschnitte ---------- */
.section { padding-block: clamp(56px, 9vw, 112px); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(24px, 4vw, 40px); }
.section-title { margin: 0; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -.035em; font-weight: 650; max-width: 18ch; text-wrap: balance; }
.section-title em { font-style: normal; color: var(--accent); }
.link-more { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 500; font-size: 15px; }
.link-more:hover { color: var(--text); }
.link-more:hover .i { transform: translateX(3px); }
.link-more .i { transition: transform .25s var(--ease); }

/* ---------- Startseite: Hero ---------- */
.hero { position: relative; min-height: min(100dvh, 980px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-slides { position: absolute; inset: 0; z-index: -2; background: var(--bg-2); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.hero-slide.is-active img { animation: kenburns 9s linear forwards; }
.hero-slide:nth-child(even).is-active img { animation-name: kenburns-2; }
@keyframes kenburns { from { transform: scale(1.12) translate3d(1.5%, 1%, 0); } to { transform: scale(1.02) translate3d(-1%, -1%, 0); } }
@keyframes kenburns-2 { from { transform: scale(1.02) translate3d(-1.5%, 0, 0); } to { transform: scale(1.12) translate3d(1%, -1.5%, 0); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgb(12 12 13 / .55) 0%, transparent 22%),
    linear-gradient(0deg, var(--bg) 2%, rgb(12 12 13 / .78) 32%, rgb(12 12 13 / .1) 70%),
    linear-gradient(90deg, rgb(12 12 13 / .75) 0%, transparent 60%);
}
.hero-inner { width: 100%; padding-block: calc(var(--header-h) + 40px) clamp(32px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.hero-copy { max-width: 760px; }
.hero-kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.hero-kicker .logo-mark { height: 58px; }
.hero-kicker p { margin: 0; }
.hero-title { margin: 0 0 16px; font-size: clamp(34px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -.04em; font-weight: 700; text-wrap: balance; }
.hero-title a { display: inline-block; transition: transform .2s ease; transform-origin: left center; }
.hero-title a:hover { transform: scale(1.02); }
.hero-text { margin: 0 0 26px; max-width: 56ch; color: var(--text-2); font-size: 17px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-copy > * { transition: opacity .5s var(--ease), transform .6s var(--ease); }
.hero.is-switching .hero-copy > :not(.hero-kicker) { opacity: 0; transform: translateY(10px); }
.hero-thumbs { display: flex; gap: 10px; }
.hero-thumb {
  position: relative; width: 92px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; padding: 0; border: 0;
  background: var(--bg-3); cursor: pointer; opacity: .5; transition: opacity .3s, transform .3s var(--ease);
}
.hero-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-thumb:hover { opacity: .85; }
.hero-thumb.is-active { opacity: 1; }
.hero-thumb::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); }
.hero-thumb.is-active::after { animation: progress var(--hero-ms, 7000ms) linear forwards; }
.hero.is-paused .hero-thumb.is-active::after { animation-play-state: paused; }
@keyframes progress { to { width: 100%; } }
@media (max-width: 860px) {
  .hero { min-height: 92dvh; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-thumbs { gap: 8px; }
  .hero-thumb { width: auto; flex: 1; max-width: 80px; }
}

/* Logo-Boot-Animation */
.logo-mark.is-boot .lm-trace { stroke-dasharray: 100; animation: trace-draw 1.2s var(--ease) .2s both; }
.logo-mark.is-boot .lm-pad, .logo-mark.is-boot .lm-via { transform-box: fill-box; transform-origin: center; animation: pad-on .45s var(--ease) both; animation-delay: calc(900ms + var(--i) * 90ms); }
.logo-mark.is-boot .lm-key { animation: brick-in .6s var(--ease) both; }
@keyframes trace-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes pad-on { 0% { transform: scale(0); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes brick-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.logo-c64.is-boot .lm-frame, .logo-c64.is-boot .lm-field { animation: brick-in .4s var(--ease) both; }
.logo-c64.is-boot .lm-px { animation: px-on .01s steps(1) both; animation-delay: calc(350ms + var(--i) * 14ms); }
@keyframes px-on { from { opacity: 0; } }
/* C64-Startbild: "READY." und darunter tippt sich "Press F2 to enter Irrsinn",
   danach blinkt der Blockcursor. Klick oder Taste F2 öffnet den Beitrag im Hero. */

.hero-kicker .hero-boot { display: grid; gap: 8px; margin: 0; font: 400 12px/1.2 var(--retro); color: var(--accent-text); }
.hero-boot .ready { animation: px-on .01s steps(1) 1.1s both; }
.hero-boot .line { display: flex; align-items: center; }
.hero-boot a { display: inline-block; overflow: hidden; white-space: nowrap; width: 25ch; animation: typing 1.5s steps(25) 1.5s both; }
.hero-boot a:hover { color: var(--text); }
.hero-boot .line::after { content: ""; width: 1ch; height: 1.15em; margin-left: 1px; background: var(--accent-text); animation: blink 1s steps(1) 1.1s infinite both; }
@keyframes typing { from { width: 0; } }
@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0; } }
@media (max-width: 420px) { .hero-kicker .hero-boot { font-size: 10px; } }

/* ---------- Horizontale Leiste (Retro-Teaser) ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 300px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--bg-4) transparent; }
.rail > * { scroll-snap-align: start; }

/* ---------- Seitenkopf (Kategorien, Archiv, Retro) ---------- */
.page-head { position: relative; padding-top: calc(var(--header-h) + clamp(40px, 7vw, 96px)); padding-bottom: clamp(28px, 4vw, 48px); overflow: hidden; isolation: isolate; }
.page-head-bg { position: absolute; inset: 0; z-index: -1; opacity: .35; }
.page-head-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(2px) saturate(.9); transform: scale(1.05); }
.page-head-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 4%, rgb(12 12 13 / .6) 60%, rgb(12 12 13 / .85)); }
.page-title { margin: 12px 0 14px; font-size: clamp(40px, 8vw, 104px); line-height: .95; letter-spacing: -.05em; font-weight: 700; }
.page-lead { margin: 0; max-width: 60ch; color: var(--text-2); font-size: clamp(16px, 1.6vw, 19px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; padding: 0; list-style: none; color: var(--muted); font: 400 13px var(--mono); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a:hover { color: var(--text); }

.toolbar { position: sticky; top: var(--header-h); z-index: 10; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-block: 14px; margin-bottom: 28px; background: linear-gradient(var(--bg) 70%, transparent); }
.toolbar .chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.toolbar .chips::-webkit-scrollbar { display: none; }
.field {
  height: 40px; padding: 0 16px; border-radius: var(--pill); border: 1px solid var(--line-2); background: var(--bg-2);
  color: var(--text); font: inherit; font-size: 14px; min-width: 0;
}
.field::placeholder { color: var(--muted); }
.field:focus { outline: none; border-color: var(--accent); }
select.field { padding-right: 34px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 17px, calc(100% - 13px) 17px; background-size: 5px 5px; background-repeat: no-repeat; }
.year-sep { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; margin-top: 12px; font: 600 14px var(--mono); color: var(--muted); }
.year-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.empty { padding: 64px 0; text-align: center; color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- Beitrag ---------- */
.post-hero { position: relative; padding-top: calc(var(--header-h) + clamp(28px, 5vw, 64px)); isolation: isolate; overflow: hidden; }
.post-hero-bg { position: absolute; inset: 0; z-index: -1; opacity: .45; }
.post-hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(40px) saturate(1.2); transform: scale(1.2); }
.post-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 18%, rgb(12 12 13 / .5)); }
.post-head { max-width: 980px; }
.post-title { margin: 18px 0 18px; font-size: clamp(34px, 5.4vw, 66px); line-height: 1.04; letter-spacing: -.04em; font-weight: 700; text-wrap: balance; }
.post-cover { margin: clamp(24px, 4vw, 44px) 0 0; border-radius: var(--r); overflow: hidden; background: var(--bg-2); box-shadow: 0 40px 80px -40px rgb(0 0 0 / .8); }
.post-cover img { width: 100%; max-height: 78vh; object-fit: cover; cursor: zoom-in; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags a, .tags span { display: inline-block; font: 400 12.5px var(--mono); color: var(--text-2); padding: 4px 10px; border-radius: var(--pill); background: var(--bg-3); }
.tags a:hover { color: var(--text); background: var(--bg-4); }

.prose { max-width: 740px; margin: clamp(32px, 5vw, 56px) auto 0; font-size: 18px; line-height: 1.75; color: #dddbd6; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose p + p { margin-top: 1.1em; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--text); letter-spacing: -.025em; line-height: 1.2; margin: 1.9em 0 .6em; font-weight: 650; }
.prose h1 { font-size: 1.8em; } .prose h2 { font-size: 1.55em; } .prose h3 { font-size: 1.25em; } .prose h4 { font-size: 1.05em; }
/* Links im Text: fett statt unterstrichen, beim Überfahren leicht größer */
.prose a { color: var(--text); font-weight: 700; display: inline-block; transition: transform .15s ease, color .15s ease; }
.prose a:hover { color: var(--accent-text); transform: scale(1.04); }
.prose a:has(img), .prose a:has(img):hover { display: inline; transform: none; }
@media (prefers-reduced-motion: reduce) { .prose a:hover { transform: none; } }
.prose strong { color: var(--text); }
.prose img { border-radius: var(--r-sm); cursor: zoom-in; margin-inline: auto; background: var(--bg-2); }
.prose p > img:only-child, .prose p > a:only-child > img { width: 100%; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; text-align: center; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); color: var(--text-2); font-style: italic; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--accent-text); }
.prose hr { border: 0; height: 1px; background: var(--line-2); margin: 2.4em 0; }
.prose code { font: .86em var(--mono); background: var(--bg-3); padding: 2px 6px; border-radius: 5px; }
.prose pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 18px 20px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose iframe, .prose video { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--r-sm); background: var(--bg-2); }
/* Bildergalerie: mehrere Bilder direkt untereinander werden zum Raster */
.prose .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.prose .gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: 0; }
.prose .gallery > :first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.prose .gallery > :first-child:nth-last-child(odd) img { aspect-ratio: 16 / 9; }
@media (min-width: 1100px) {
  .prose .gallery { margin-inline: -120px; }
}

.post-foot { max-width: 740px; margin: 56px auto 0; display: grid; gap: 28px; }
.author-box { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: center; padding: 20px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); }
.author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.author-box p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.author-box strong { color: var(--text); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pager a { position: relative; display: grid; gap: 4px; padding: 18px 20px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); min-height: 110px; overflow: hidden; isolation: isolate; transition: border-color .25s; }
.pager a:hover { border-color: var(--line-2); }
.pager a.next { text-align: right; }
.pager small { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font: 400 12.5px var(--mono); }
.pager a.next small { justify-content: flex-end; }
.pager strong { font-size: 16px; line-height: 1.35; font-weight: 600; }
.pager img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .18; transition: opacity .3s; }
.pager a:hover img { opacity: .28; }
@media (max-width: 600px) { .pager { grid-template-columns: 1fr; } }

.comments { text-align: center; }
.comments #disqus_thread { text-align: left; margin-top: 16px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: var(--z-dialog); display: grid; place-items: center; background: rgb(8 8 9 / .94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; touch-action: pan-y; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 94vw; max-height: 86dvh; width: auto; border-radius: var(--r-sm); box-shadow: 0 30px 80px rgb(0 0 0 / .6); transition: transform .3s var(--ease), opacity .2s; }
.lb-btn { position: absolute; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lb-next { right: 16px; top: 50%; translate: 0 -50%; }
.lb-count { position: absolute; bottom: 18px; left: 50%; translate: -50% 0; font: 500 13px var(--mono); color: var(--text-2); }

/* ---------- Suche ---------- */
.search-dialog { width: min(720px, calc(100vw - 24px)); max-height: min(78dvh, 720px); margin: 10vh auto auto; padding: 0; border: 1px solid var(--line-2); border-radius: var(--r); background: rgb(19 19 21 / .97); color: var(--text); box-shadow: 0 40px 100px rgb(0 0 0 / .7); overflow: hidden; }
.search-dialog[open] { display: flex; flex-direction: column; animation: dlg-in .25s var(--ease); }
.search-dialog::backdrop { background: rgb(8 8 9 / .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(-8px) scale(.985); } }
.search-top { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.search-top .i { color: var(--muted); width: 20px; height: 20px; }
.search-input { flex: 1; height: 62px; border: 0; background: none; color: var(--text); font: inherit; font-size: 18px; outline: none; min-width: 0; }
.search-input::placeholder { color: var(--muted); }
.search-results { list-style: none; margin: 0; padding: 8px; overflow-y: auto; }
.sr-item a { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; padding: 8px; border-radius: 10px; }
.sr-item a[aria-selected="true"], .sr-item a:hover { background: rgb(255 255 255 / .06); }
.sr-item img, .sr-item .ph { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; }
.sr-item .ph span { font-size: 18px; }
.sr-item strong { display: block; font-weight: 600; line-height: 1.3; }
.sr-item small { color: var(--muted); font: 400 12.5px var(--mono); }
.sr-item mark { background: var(--accent-soft); color: var(--text); border-radius: 3px; padding: 0 2px; }
.search-hint { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--muted); font: 400 12px var(--mono); }
.search-empty { padding: 28px 16px; color: var(--muted); text-align: center; }

/* ---------- Retro ---------- */
.stats { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 28px; }
.stat strong { display: block; font: 600 clamp(28px, 3.4vw, 40px)/1 var(--mono); letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: 14px; }
.machine .card-media { aspect-ratio: 1 / 1; }
.machine .card-media img { object-fit: cover; }
.status { display: inline-flex; align-items: center; gap: 6px; font: 500 12px var(--mono); padding: 3px 10px; border-radius: var(--pill); background: var(--bg-3); color: var(--text-2); }
.status.s-laeuft { color: var(--ok); background: rgb(123 211 137 / .1); }
.status.s-defekt { color: var(--bad); background: rgb(255 107 107 / .1); }
.status.s-restauration { color: var(--warn); background: rgb(242 193 78 / .1); }
.badge-sample { position: absolute; top: 12px; left: 12px; z-index: 2; font: 500 11.5px var(--mono); background: var(--accent); color: var(--accent-ink); padding: 3px 9px; border-radius: var(--pill); }
.machine-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.gallery-main { border-radius: var(--r); overflow: hidden; background: var(--bg-2); aspect-ratio: 4 / 3; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery-thumbs button { flex: none; width: 84px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--bg-3); opacity: .6; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--accent); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 24px; }
.spec { padding: 14px 16px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.spec small { display: flex; align-items: center; gap: 6px; color: var(--muted); font: 400 12px var(--mono); }
.spec small .i { width: 14px; height: 14px; }
.spec strong { display: block; margin-top: 4px; font-weight: 600; font-size: 15.5px; line-height: 1.35; }
@media (max-width: 860px) { .machine-head { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(64px, 10vw, 128px); border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: 56px 40px; }
.footer-about { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: start; }
.footer-about img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.footer-about p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.footer-col h2 { margin: 0 0 14px; font: 500 13px var(--mono); color: var(--muted); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--text-2); display: inline-flex; align-items: center; gap: 8px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-bottom a:hover { color: var(--text); }
.footer-bottom nav { display: flex; gap: 18px; }
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease), visibility .3s; background: var(--bg-3); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

/* ---------- Statische Seiten ---------- */
.page-body { max-width: 860px; }
.sticker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 18px; margin-top: 32px; }
.sticker-grid a { display: block; border-radius: var(--r); overflow: hidden; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); transition: transform .3s var(--ease); }
.sticker-grid a:hover { transform: translateY(-4px); }
.sticker-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .cols-2 { grid-template-columns: 1fr; } }

/* ---------- Scroll-Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero-slide img { transform: none !important; }
}

/* ---------- Ergänzungen ---------- */
.more-row { display: flex; justify-content: center; margin-top: clamp(28px, 4vw, 44px); }
/* Unterpunkte im Handymenü (z. B. Bricksticker unter Brickwars) */
.mm-link.mm-sub { min-height: 48px; margin-left: 28px; padding-block: 8px; grid-template-columns: 1fr; }
.mm-link.mm-sub strong { font-size: 17px; }
/* YouTube erst nach Klick */
.prose .yt { display: grid; place-items: center; gap: 10px; aspect-ratio: 16 / 9; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); text-align: center; padding: 16px; }
.prose .yt small { color: var(--muted); font-size: 13px; }
.footer-bottom .caption { color: var(--text-2); }

/* Logo: Werkzeugleiste aus dem Garagen-Schild (breit statt quadratisch) */
.brand .logo-werkzeugleiste { height: 28px; }
.hero-kicker .logo-werkzeugleiste { height: 60px; }
/* Beim Laden fährt die Leiste von links nach rechts ins Bild, wie ein Bild, das zeilenweise geladen wird */
.logo-werkzeugleiste.is-boot .lm-tools { animation: tools-in 1s steps(12) .2s both; }
@keyframes tools-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
.brand:hover .logo-werkzeugleiste { filter: brightness(1.25); }
@media (max-width: 480px) {
  .brand:has(.logo-werkzeugleiste) { gap: 8px; }
  .brand .logo-werkzeugleiste { height: 19px; }
  .hero-kicker .logo-werkzeugleiste { height: 44px; }
  .hero-kicker:has(.logo-werkzeugleiste) { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* Überschriften in Handschrift wie auf der alten Seite (site.config.yml: headline_font: handschrift) */
@font-face {
  font-family: "Architects Daughter";
  src: url("../fonts/architects-daughter-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
.font-hand :is(.hero-title, .post-title, .page-title, .section-title, .card-title, .prose h1, .prose h2, .prose h3, .prose h4, .st-preview .post-title) {
  font-family: "Architects Daughter", var(--font);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.15;
}
.font-hand .card-title { font-size: 20px; }

/* Überschriften in Michroma, breite Raumfahrt-Beschriftung (headline_font: michroma).
   Die Schrift läuft sehr breit, deshalb alles eine Nummer kleiner und mit Silbentrennung. */
@font-face {
  font-family: "Michroma";
  src: url("../fonts/michroma-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
.font-michroma :is(.hero-title, .post-title, .page-title, .section-title, .card-title, .prose h1, .prose h2, .prose h3, .prose h4, .st-preview .post-title) {
  font-family: "Michroma", var(--font);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.3;
  hyphens: auto;
  overflow-wrap: break-word;
}
.font-michroma .hero-title { font-size: clamp(24px, 3.7vw, 46px); }
.font-michroma .post-title { font-size: clamp(22px, 3.5vw, 42px); }
.font-michroma .page-title { font-size: clamp(28px, 5.4vw, 68px); line-height: 1.1; }
.font-michroma .section-title { font-size: clamp(22px, 3vw, 36px); max-width: 24ch; }
.font-michroma .card-title { font-size: 15px; line-height: 1.45; }
.font-michroma .prose h1 { font-size: 1.4em; } .font-michroma .prose h2 { font-size: 1.22em; }
.font-michroma .prose h3 { font-size: 1.05em; } .font-michroma .prose h4 { font-size: .95em; }

/* =====================================================================
   Thema HUD (logo: hud in site.config.yml): Cyberpunk, dunkleres Blau,
   abgeschrägte Ecken, feines Raster. Gilt nur mit <html class="theme-hud">.
   ===================================================================== */
@font-face { font-family: "Chakra Petch"; src: url("../fonts/chakra-petch-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("../fonts/chakra-petch-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Share Tech Mono"; src: url("../fonts/share-tech-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

.theme-hud {
  --bg: #05070f; --bg-2: #0a0f22; --bg-3: #10183a; --bg-4: #172255;
  --line: rgb(91 123 255 / .14); --line-2: rgb(91 123 255 / .28);
  --text: #e6eaff; --text-2: #aab3d6; --muted: #7d88b3;
  --accent: #2340e6; --accent-2: #1a33c4; --accent-ink: #ffffff; --accent-text: #8ea3ff; --accent-soft: rgb(35 64 230 / .28);
  --c64-field: #0b1a5c; --hud: #5b7bff;
  --retro: "Share Tech Mono", var(--mono);
  --tech: "Chakra Petch", var(--font);
  --header-h: 84px;
  --cut: 10px;
  --chamfer: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.theme-hud body {
  background:
    linear-gradient(rgb(91 123 255 / .035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgb(91 123 255 / .035) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--bg);
  background-attachment: fixed;
}

/* Logo: drei Kacheln, beim Drüberfahren leuchten sie nacheinander auf */
.logo-hud .lm-tile { fill: var(--c64-field); transition: fill .2s; transition-delay: calc(var(--i) * 70ms); }
.logo-hud .lm-icon { fill: var(--hud); transition: fill .2s; transition-delay: calc(var(--i) * 70ms); }
.logo-hud .lm-spark { stroke: var(--accent-text); }
.brand:hover .logo-hud .lm-tile { fill: var(--hud); }
.brand:hover .logo-hud .lm-icon { fill: var(--bg); }
/* Hazard (logo: hazard): Werkstatt-Warnfarben. Außen schwarz mit gelber Kontur,
   Mitte gestreift (Muster im SVG). Drüberfahren: Kacheln werden gelb. */
.logo-hazard .lm-tile { stroke: #fcee0a; }
.logo-hazard .lm-tile:not(.lm-stripes) { fill: #05070f; }
.logo-hazard .lm-icon { fill: #fcee0a; }
.logo-hazard .lm-icon-dark { fill: #05070f; stroke: #fcee0a; }
.logo-hazard .lm-spark { stroke: #fcee0a; }
.brand:hover .logo-hazard .lm-tile:not(.lm-stripes) { fill: #fcee0a; }
.brand:hover .logo-hazard .lm-icon:not(.lm-icon-dark) { fill: #05070f; }
.brand:hover .logo-hazard .lm-spark { stroke: #05070f; }
.theme-hud.hud-hazard .brand-word i { color: #fcee0a; }

/* Autorenfoto (Fußzeile, unter Beiträgen) als HUD-Kachel statt rund: abgeschrägt, Rahmen in Logofarbe */
.theme-hud :is(.author-box, .footer-about) img {
  border-radius: 0; padding: 2px; background: var(--hud);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.theme-hud.hud-hazard :is(.author-box, .footer-about) img { background: #fcee0a; }

.theme-hud .brand { gap: 16px; flex-shrink: 0; white-space: nowrap; }
.theme-hud .brand .logo-hud { height: 50px; }
.theme-hud .brand-word { gap: 8px; font: 700 26px/1 var(--tech); letter-spacing: .06em; color: var(--text); }
.theme-hud .brand-word b { font-weight: 700; }
.theme-hud .brand-word i { font-style: normal; color: var(--hud); }
.theme-hud .brand-word small { font: 400 10.5px/1 var(--retro); letter-spacing: .26em; color: var(--muted); text-transform: uppercase; }

/* Abgeschrägte Ecken statt Rundungen */
.theme-hud :is(.btn, .icon-btn, .chip, .field, .card-media, .dropdown, .search-dialog, .mm-link, .author-box, .pager a, .spec, .hero-thumb, .post-cover, .gallery-main, .status, .tags a, .tags span, .sticker-grid a, .prose .yt, .lightbox img) {
  border-radius: 0; clip-path: var(--chamfer);
}
.theme-hud :is(.chip, .status, .tags a, .tags span, .icon-btn, .hero-thumb) { --cut: 6px; }
.theme-hud .btn { font: 700 14px var(--tech); letter-spacing: .08em; text-transform: uppercase; }
.theme-hud .btn-ghost { border-color: var(--line-2); background: rgb(10 15 34 / .6); }
.theme-hud .icon-btn { border-color: var(--line-2); background: rgb(10 15 34 / .6); }

/* Menü in Technik-Schrift */
.theme-hud .nav-link { font: 600 14px var(--tech); letter-spacing: .07em; text-transform: uppercase; border-radius: 0; }
.theme-hud .nav-link[aria-current="page"]::after, .theme-hud .nav-link.is-active::after { background: var(--hud); height: 2px; left: 14px; right: 14px; }
.theme-hud .search-btn { font-family: var(--tech); }
.theme-hud .site-header.is-solid, .theme-hud .site-header.is-menu { background: rgb(5 7 15 / .86); border-bottom-color: var(--line-2); }
.theme-hud .dd-link, .theme-hud .dd-link img, .theme-hud .dd-link .ph { border-radius: 0; }

/* Hero: Rasterlinien über dem Bild, Startzeile im Terminal-Stil */
.theme-hud .hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgb(91 123 255 / .06) 0 1px, transparent 1px 3px);
}
.theme-hud .hero-kicker .hero-boot { font-size: 14px; color: var(--hud); }
.theme-hud .hero-boot .line::after { background: var(--hud); }
.theme-hud .hero-thumb::after { background: var(--hud); }

/* Kleinteile */
.theme-hud .cat-label { color: var(--accent-text); font-family: var(--retro); letter-spacing: .04em; }
.theme-hud .meta { font-family: var(--retro); }
.theme-hud .crumbs { font-family: var(--retro); text-transform: uppercase; letter-spacing: .08em; }
.theme-hud .footer-bottom .caption { font-family: var(--retro); }
.theme-hud .site-footer { border-top-color: var(--line-2); background: rgb(10 15 34 / .85); }
.theme-hud .prose blockquote { border-left-color: var(--hud); }
.theme-hud .year-sep { font-family: var(--retro); letter-spacing: .1em; }

/* Mittlere Breite: Menü und Logo passen nur knapp nebeneinander, beides etwas kleiner,
   damit "// Lakeside Tinkerbase" in einer Zeile bleibt */
@media (min-width: 1021px) and (max-width: 1240px) {
  .theme-hud .brand { gap: 12px; }
  .theme-hud .brand .logo-hud { height: 40px; }
  .theme-hud .brand-word { font-size: 21px; gap: 6px; }
  .theme-hud .brand-word small { font-size: 9px; letter-spacing: .2em; }
  .theme-hud .nav-link { padding-left: 10px; padding-right: 10px; letter-spacing: .05em; }
  .theme-hud .search-btn .label, .theme-hud .search-btn kbd { display: none; }
  .theme-hud .search-btn { width: 40px; padding: 0; justify-content: center; }
}
@media (max-width: 760px) {
  .theme-hud { --header-h: 64px; }
  .theme-hud .brand { gap: 10px; }
  .theme-hud .brand .logo-hud { height: 30px; }
  .theme-hud .brand-word { font-size: 17px; gap: 5px; }
  .theme-hud .brand-word small { font-size: 8px; letter-spacing: .18em; }
}
@media (max-width: 380px) {
  .theme-hud .brand .logo-hud { height: 24px; }
  .theme-hud .brand-word { font-size: 15px; }
}
