/* ==========================================================================
   computerfritz Blog
   Idee: Ein Blog über Suchmaschinen, der sich wie eine Suchmaschine liest.
   Linkblau, "besucht"-Violett, URL-Grün und Markergelb sind keine Deko,
   sondern tragen Bedeutung: klickbar, schon gelesen, Adresse, Treffer.
   ========================================================================== */

:root {
  --bg: #fbfcfe;
  --surface: #eff3f9;
  --ink: #182132;
  --muted: #586379;
  --line: #d9e0ea;
  --link: #1a47c9;
  --visited: #6d3ca8;
  --url: #0d7446;
  --mark: #ffe24a;
  --mark-ink: #182132;
  --ok: #0d7446;
  --err: #b3261e;

  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-text: "Source Serif 4", Georgia, "Times New Roman", serif;

  --wrap: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --r-sm: 6px;
  --r-md: 12px;
  --r-pill: 999px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0f141d;
  --surface: #171f2d;
  --ink: #e8ecf4;
  --muted: #9ca7ba;
  --line: #2a3447;
  --link: #93b3ff;
  --visited: #c9a8ff;
  --url: #62d39e;
  --mark: #f3d23c;
  --mark-ink: #141a24;
  --ok: #62d39e;
  --err: #ff8a80;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f141d;
    --surface: #171f2d;
    --ink: #e8ecf4;
    --muted: #9ca7ba;
    --line: #2a3447;
    --link: #93b3ff;
    --visited: #c9a8ff;
    --url: #62d39e;
    --mark: #f3d23c;
    --mark-ink: #141a24;
    --ok: #62d39e;
    --err: #ff8a80;
    color-scheme: dark;
  }
}

/* ---------------------------------------------------------------- Basis */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 4px; }
mark { background: var(--mark); color: var(--mark-ink); padding: 0 .12em; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.12; margin: 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { top: 1rem; }
.hp { position: absolute; left: -9999px; }

/* --------------------------------------------------------------- Header */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 2.15rem; height: 2.15rem; border-radius: 9px;
  background: var(--ink); color: var(--bg);
  font-weight: 800; font-stretch: 75%; font-size: 1.02rem; letter-spacing: -.02em;
}
.brand-text { display: flex; align-items: baseline; gap: .3rem; font-size: 1.12rem; letter-spacing: -.015em; }
.brand-text strong { font-weight: 700; }
.brand-text span { color: var(--muted); font-weight: 400; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: .5rem .75rem; border-radius: var(--r-sm);
  color: var(--muted); text-decoration: none; font-size: .96rem; font-weight: 500;
}
.main-nav a:hover { color: var(--ink); background: var(--surface); }
.main-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--link); border-radius: 0; }

.head-tools { display: flex; gap: .25rem; }
.icon-btn {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink); cursor: pointer;
}
.icon-btn:hover { background: var(--surface); }
.icon-btn svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.theme-toggle svg { fill: currentColor; stroke: none; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .head-row { gap: .5rem; }
  .nav-toggle {
    display: grid; place-items: center; order: 3; margin-left: .25rem;
    width: 2.5rem; height: 2.5rem; border: 0; background: transparent; cursor: pointer; color: var(--ink);
  }
  .burger, .burger::before, .burger::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s; }
  .burger::before, .burger::after { content: ""; position: absolute; left: 0; }
  .burger::before { top: -6px; } .burger::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .burger { background: transparent; }
  .nav-toggle[aria-expanded="true"] .burger::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .burger::after { transform: translateY(-6px) rotate(-45deg); }
  .head-tools { margin-left: auto; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: none; padding: .5rem var(--gutter) 1rem;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: .8rem .25rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--link); padding-left: .75rem; }
}

/* ----------------------------------------------------------------- Hero */
.hero { padding: clamp(3rem, 9vw, 7rem) 0 clamp(2rem, 4vw, 3rem); }
.hero-title {
  font-size: clamp(2.5rem, 7vw, 5.9rem);
  font-weight: 700;
  font-stretch: 78%;
  letter-spacing: -.035em;
  line-height: .94;
  max-width: 14ch;
  margin-bottom: clamp(1.8rem, 4vw, 2.8rem);
}

.searchbox {
  position: relative; display: flex; align-items: center;
  max-width: 760px;
  background: var(--bg);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-pill);
  padding: .4rem .4rem .4rem 3.4rem;
  transition: box-shadow .2s;
}
.searchbox:focus-within { box-shadow: 0 0 0 4px color-mix(in srgb, var(--link) 25%, transparent); border-color: var(--link); }
.searchbox-icon { position: absolute; left: 1.25rem; width: 1.35rem; height: 1.35rem; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.searchbox input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink);
  font: 400 clamp(1.05rem, 2.2vw, 1.3rem)/1.2 var(--f-display);
  padding: .85rem .5rem; outline: none;
}
.searchbox input::placeholder { color: var(--muted); opacity: 1; }
.searchbox input::-webkit-search-cancel-button { filter: grayscale(1); }
.searchbox button {
  border: 0; border-radius: var(--r-pill); cursor: pointer;
  background: var(--ink); color: var(--bg);
  font: 600 1rem var(--f-display); padding: .85rem 1.4rem;
}
.searchbox button:hover { background: var(--link); color: #fff; }
.searchbox--small { padding-left: .5rem; max-width: 640px; margin-bottom: 1.5rem; }
.searchbox--small input { font-size: 1.05rem; padding: .6rem .6rem; }
.searchbox--small button { padding: .6rem 1.1rem; }

.related { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.25rem; max-width: 760px; }
.related-label { color: var(--muted); font-size: .92rem; margin-right: .25rem; }
.related a {
  font-size: .92rem; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: .3rem .8rem;
}
.related a:hover { border-color: var(--ink); }

/* ---------------------------------------------------------- Trefferliste */
.serp {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 6vw, 5rem);
  padding-bottom: 5rem; align-items: start;
}
.serp-main { max-width: 700px; }
.serp-stats { color: var(--muted); font-size: .92rem; margin: 0 0 1.6rem; }
.serp-stats span { opacity: .8; }

.results { display: flex; flex-direction: column; gap: 2.1rem; }
.result { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.25rem; align-items: start; }
.result-crumb { display: flex; align-items: center; gap: .6rem; margin: 0 0 .35rem; font-size: .88rem; color: var(--muted); }
.result-crumb a { color: inherit; text-decoration: none; }
.result-crumb a:hover { text-decoration: underline; }
.favi {
  display: grid; place-items: center; flex: none;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  font-size: .68rem; font-weight: 800; font-stretch: 75%;
}
.crumb-text { color: var(--url); overflow-wrap: anywhere; }
.crumb-text > a:first-child, .crumb-text { line-height: 1.3; }
.sep { color: var(--muted); }
.result-title { font-size: clamp(1.2rem, 2.2vw, 1.42rem); font-weight: 600; letter-spacing: -.012em; margin: 0 0 .35rem; line-height: 1.25; }
.result-title a { text-decoration: none; }
.result-title a:hover { text-decoration: underline; }
.result-title a:visited { color: var(--visited); }
.result-snippet { font-family: var(--f-text); color: var(--ink); opacity: .86; margin: 0; font-size: 1rem; line-height: 1.6; }
.result-snippet time { color: var(--muted); font-family: var(--f-display); font-size: .92rem; }
.result-tags { display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin: .5rem 0 0; font-size: .88rem; }
.result-tags a { color: var(--muted); text-decoration: none; }
.result-tags a::before { content: "#"; opacity: .6; }
.result-tags a:hover { color: var(--link); }
.result-thumb img {
  width: 108px; height: 108px; object-fit: cover; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface);
}

.results--compact { gap: 1.4rem; }
.results--compact .result-title { font-size: 1.05rem; }
.results--compact .result-snippet { font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.empty { padding: 1.5rem; border: 1px dashed var(--line); border-radius: var(--r-md); color: var(--muted); }
.empty h2 { color: var(--ink); font-size: 1.2rem; margin-bottom: .4rem; }

/* Pagination im Stil von "Gooogle" */
.pager { margin-top: 3.5rem; text-align: center; }
.pager-word {
  display: block; font-size: 2.4rem; font-weight: 700; font-stretch: 80%;
  letter-spacing: -.04em; color: var(--line); user-select: none; line-height: 1;
}
.pager-word span { color: var(--muted); opacity: .5; }
.pager-nums { display: flex; justify-content: center; flex-wrap: wrap; gap: .25rem; margin-top: .6rem; }
.pager-nums a, .pager-nums span {
  min-width: 2.4rem; padding: .45rem .7rem; border-radius: var(--r-sm); text-decoration: none;
}
.pager-nums a:hover { background: var(--surface); }
.pager-nums span[aria-current] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--link); border-radius: 0; }
.pager-edge { font-weight: 600; }

/* --------------------------------------------------------- Seitenspalte */
.serp-side { display: flex; flex-direction: column; gap: 2.2rem; position: sticky; top: 5.5rem; }
.panel {
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.35rem;
  background: var(--bg);
}
.panel-top { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.panel-top img { width: 76px; height: 76px; object-fit: cover; border-radius: var(--r-md); }
.panel-name { font-size: 1.35rem; font-weight: 700; letter-spacing: -.015em; }
.panel-role { margin: .15rem 0 0; color: var(--muted); font-size: .9rem; }
.panel-text { font-family: var(--f-text); margin: 0 0 1rem; line-height: 1.55; font-size: .98rem; }
.panel-facts { margin: 0 0 1rem; border-top: 1px solid var(--line); }
.panel-facts div { display: grid; grid-template-columns: 5.5rem 1fr; gap: .5rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.panel-facts dt { font-weight: 600; }
.panel-facts dd { margin: 0; color: var(--muted); }
.panel-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.panel-links a {
  font-size: .9rem; text-decoration: none; padding: .45rem .9rem; border-radius: var(--r-pill);
  border: 1px solid var(--line); color: var(--link); font-weight: 500;
}
.panel-links a:hover { border-color: var(--link); }

.side-h { font-size: .98rem; font-weight: 700; margin-bottom: .8rem; }
.topic-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.topic-list a {
  display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0;
  border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
.topic-list a:hover .topic-name { color: var(--link); text-decoration: underline; }
.topic-n { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.popular { margin: 0; padding-left: 1.3rem; display: grid; gap: .6rem; }
.popular li::marker { color: var(--muted); font-weight: 600; }
.popular a { text-decoration: none; line-height: 1.35; }
.popular a:hover { text-decoration: underline; }
.popular a:visited { color: var(--visited); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; }
.tag-cloud a { text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-pill); padding: .3rem .8rem; font-size: .9rem; }
.tag-cloud a:hover { border-color: var(--ink); }

/* ---------------------------------------------------- Listen-Kopf/Seiten */
.list-head { padding: clamp(2.2rem, 6vw, 4rem) 0 2rem; }
.list-title { font-size: clamp(2.1rem, 5vw, 3.8rem); font-weight: 700; font-stretch: 82%; letter-spacing: -.03em; max-width: 20ch; }
.list-intro { margin-top: 1rem; max-width: 62ch; color: var(--ink); }
.list-intro p:first-child { margin-top: 0; }

.archive { padding-bottom: 5rem; display: grid; gap: 2.5rem; max-width: 820px; }
.archive-year h2 { font-size: 2.6rem; font-stretch: 80%; color: var(--muted); font-weight: 700; margin-bottom: .6rem; }
.archive-year ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.archive-year li { display: grid; grid-template-columns: 4rem 1fr auto; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.archive-year time { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.archive-year a { text-decoration: none; font-weight: 500; font-size: 1.08rem; }
.archive-year a:hover { text-decoration: underline; }
.archive-year a:visited { color: var(--visited); }
.archive-cat { color: var(--url); font-size: .85rem; }

.page { padding-bottom: 5rem; }
.page-head { padding: clamp(2.2rem, 6vw, 4rem) 0 2rem; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.page-grid > :only-child { grid-column: 1 / -1; max-width: 72ch; }
.page-side { position: sticky; top: 5.5rem; }
.lead { font-family: var(--f-text); font-size: 1.2rem; line-height: 1.6; max-width: 60ch; }

.notfound { padding: 3rem 0 5rem; }
.nf-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-stretch: 85%; margin: .5rem 0 1rem; letter-spacing: -.02em; }

/* ---------------------------------------------------------- Beitrag */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--link); transform-origin: 0 50%; transform: scaleX(0); }
.preview-bar { background: var(--mark); color: var(--mark-ink); text-align: center; padding: .6rem; font-weight: 600; }

.post-head { padding: clamp(2.2rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.2rem); }
.post-crumb { margin-bottom: 1.2rem; }
.post-title {
  font-size: clamp(2.2rem, 5.6vw, 4.4rem); font-weight: 700; font-stretch: 80%;
  letter-spacing: -.035em; line-height: 1; max-width: 18ch;
}
.post-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 1.4rem 0 0; color: var(--muted); font-size: .95rem; }
.post-meta a { color: var(--url); text-decoration: none; }
.post-meta a:hover { text-decoration: underline; }
.post-figure { margin-block: 0 clamp(2rem, 5vw, 3.5rem); }
.post-figure img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--line); }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; padding-bottom: 3rem; }
.post-layout.has-toc { grid-template-columns: 230px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); justify-items: stretch; }
.post-body { width: 100%; max-width: 68ch; }
.toc { position: sticky; top: 6rem; align-self: start; font-size: .9rem; }
.toc-h { font-weight: 700; margin: 0 0 .7rem; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li a { display: block; padding: .35rem 0 .35rem 1rem; margin-left: -1px; color: var(--muted); text-decoration: none; border-left: 2px solid transparent; line-height: 1.35; }
.toc li.lvl3 a { padding-left: 1.8rem; font-size: .86rem; }
.toc li a:hover { color: var(--ink); }
.toc li a.active { color: var(--link); border-left-color: var(--link); }

/* Lesetext */
.prose { font-family: var(--f-text); font-size: clamp(1.08rem, 1.3vw, 1.19rem); line-height: 1.72; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose figure, .prose table { margin: 0 0 1.25em; }
.prose h2 { font-size: 1.7em; font-weight: 700; font-stretch: 85%; letter-spacing: -.02em; margin: 1.9em 0 .6em; }
.prose h3 { font-size: 1.3em; font-weight: 650; margin: 1.6em 0 .5em; letter-spacing: -.01em; }
.prose h4 { font-size: 1.08em; margin: 1.4em 0 .4em; }
.prose a { color: var(--link); }
.prose a:visited { color: var(--visited); }
.prose strong { font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--muted); }
.prose img { border-radius: var(--r-md); margin: 1.6em auto; border: 1px solid var(--line); }
.prose img[style*="float: left"], .prose img[align="left"] { float: left; margin: .3em 1.4em 1em 0; max-width: 45%; }
.prose img[style*="float: right"], .prose img[align="right"] { float: right; margin: .3em 0 1em 1.4em; max-width: 45%; }
.prose blockquote {
  margin-left: 0; padding: .2em 0 .2em 1.3em; border-left: 3px solid var(--link);
  font-size: 1.1em; font-style: italic; color: var(--ink);
}
.prose table { width: 100%; border-collapse: collapse; font-family: var(--f-display); font-size: .92em; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: .6em .8em; border-bottom: 1px solid var(--line); }
.prose code { font-size: .88em; background: var(--surface); padding: .1em .35em; border-radius: 4px; }
.prose pre { background: var(--surface); padding: 1em; border-radius: var(--r-md); overflow-x: auto; font-size: .88em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose iframe { max-width: 100%; border: 0; border-radius: var(--r-md); }
.prose::after { content: ""; display: block; clear: both; }

.post-tags { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-family: var(--f-display); font-size: .95rem; margin-top: 2.5em !important; }
.post-tags span { color: var(--muted); margin-right: .2rem; }
.post-tags a { background: var(--mark); color: var(--mark-ink) !important; text-decoration: none; padding: .15rem .55rem; border-radius: 4px; font-weight: 500; }
.post-tags a:hover { text-decoration: underline; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-family: var(--f-display); font-size: .92rem; padding-top: 1.4em; border-top: 1px solid var(--line); margin-top: 1.6em; }
.share span { color: var(--muted); margin-right: .3rem; }
.share a, .share button {
  font: 500 .9rem var(--f-display); color: var(--ink); text-decoration: none; background: transparent;
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: .35rem .85rem; cursor: pointer;
}
.share a:hover, .share button:hover { border-color: var(--ink); }
.share a:visited { color: var(--ink); }

.post-after { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 6vw, 5rem); padding: 1rem 0 5rem; border-top: 1px solid var(--line); align-items: start; }
.post-after-main { padding-top: 2.5rem; max-width: 700px; }
.post-after-side { padding-top: 2.5rem; display: flex; flex-direction: column; gap: 2.2rem; }

.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 3.5rem; }
.pn { display: block; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; font-weight: 600; line-height: 1.3; }
.pn span { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; margin-bottom: .3rem; }
.pn:hover { border-color: var(--link); }
.pn-next { grid-column: 2; text-align: right; }

.comments h2 { font-size: 1.5rem; font-stretch: 85%; margin-bottom: 1.4rem; }
.comment { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.comment-head { margin: 0 0 .35rem; }
.comment-head time { color: var(--muted); font-size: .88rem; margin-left: .5rem; }
.comment-body { font-family: var(--f-text); line-height: 1.6; }

/* ---------------------------------------------------------- Formulare */
.form { display: grid; gap: 1.1rem; margin-top: 1.8rem; max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
.form small { font-weight: 400; color: var(--muted); }
.form input:not([type="checkbox"]), .form textarea {
  width: 100%; font: 400 1rem/1.4 var(--f-display); color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: .75rem .9rem;
}
.form textarea { resize: vertical; min-height: 8rem; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px color-mix(in srgb, var(--link) 22%, transparent); }
.form .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.form .check input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; accent-color: var(--link); }
.btn {
  justify-self: start; border: 0; cursor: pointer; border-radius: var(--r-pill);
  background: var(--ink); color: var(--bg); font: 600 1rem var(--f-display); padding: .85rem 1.6rem;
}
.btn:hover { background: var(--link); color: #fff; }
.note { border-radius: 10px; padding: .9rem 1.1rem; margin: 1.2rem 0 0; max-width: 640px; }
.note p { margin: .15rem 0; }
.note--ok { background: color-mix(in srgb, var(--ok) 13%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); }
.note--err { background: color-mix(in srgb, var(--err) 11%, transparent); border: 1px solid color-mix(in srgb, var(--err) 40%, transparent); }

/* ------------------------------------------------------------- Footer */
.site-foot { background: var(--surface); border-top: 1px solid var(--line); padding: 3.5rem 0 1.5rem; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
.foot-about p { max-width: 42ch; color: var(--muted); margin: 1rem 0 0; line-height: 1.55; }
.foot-copy { font-size: .85rem; }
.foot-h { font-size: .95rem; margin-bottom: .8rem; }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.foot-list a { color: var(--ink); text-decoration: none; }
.foot-list a:hover { color: var(--link); text-decoration: underline; }
.count { color: var(--muted); font-size: .85rem; margin-left: .2rem; }
.foot-base { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.foot-base a { color: var(--muted); }

/* --------------------------------------------------------- Responsive */
@media (max-width: 980px) {
  .serp, .post-after, .page-grid { grid-template-columns: minmax(0, 1fr); }
  .serp-side, .page-side { position: static; }
  .post-layout.has-toc { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem 1.2rem; max-width: 68ch; width: 100%; margin: 0 auto 2rem; }
}
@media (max-width: 640px) {
  .result { grid-template-columns: minmax(0, 1fr) 76px; gap: .9rem; }
  .result-thumb img { width: 76px; height: 76px; border-radius: 9px; }
  .form-row, .prevnext { grid-template-columns: 1fr; }
  .pn-next { grid-column: 1; text-align: left; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
  .searchbox { padding-left: 2.8rem; }
  .searchbox-icon { left: 1rem; }
  .searchbox button { padding: .8rem 1rem; }
  .archive-year li { grid-template-columns: 3.4rem 1fr; }
  .archive-cat { grid-column: 2; }
  .prose img[style*="float"], .prose img[align] { float: none !important; max-width: 100%; margin: 1.4em auto; }
  .pager-word { font-size: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

@media print {
  .site-head, .site-foot, .serp-side, .post-after, .share, .toc, .progress { display: none !important; }
  body { background: #fff; color: #000; }
  .post-layout.has-toc { grid-template-columns: 1fr; }
  .prose a::after { content: " (" attr(href) ")"; font-size: .8em; }
}
