/* Stylesheet der Rubrik „Notizen". Tokens, Kopf- und Fußzeile sind mit
   index.html identisch – die Startseite behält ihr eingebettetes CSS,
   die Artikel teilen sich diese Datei. Neuer Artikel = neue HTML-Datei,
   kein CSS anfassen. */

:root {
  --ink:      #080c12;
  --fg:       #e9eef6;
  --fg-dim:   #a8b4c6;
  --muted:    #6d7c92;
  --rule:     rgba(168, 196, 232, .13);
  --rule-hi:  rgba(168, 196, 232, .26);
  --brand:    #1c84d7;
  --brand-hi: #63bdf7;
  --foodx:    #e4633a;
  --bee:      #fab42e;
  --shell:    1180px;
  --measure:  68ch;
  --ease:     cubic-bezier(.22, .61, .36, 1);
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--ink);
  color: var(--fg);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: -30vmax;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(38vmax 26vmax at 22% 8%,  rgba(28, 132, 215, .20), transparent 62%),
    radial-gradient(30vmax 22vmax at 86% 26%, rgba(99, 189, 247, .10), transparent 60%),
    radial-gradient(34vmax 24vmax at 62% 96%, rgba(28, 132, 215, .08), transparent 62%);
  animation: drift 48s var(--ease) infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0)      scale(1);    }
  to   { transform: translate3d(3vw, -2vh, 0) scale(1.08); }
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: 32px; }

.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .74rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}

h1, h2, h3 {
  font-family: "Bricolage Grotesque", "Inter Tight", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.02;
  text-wrap: balance;
}
p { text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand-hi); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--brand); color: #04080d; }

/* ── Kopfzeile ───────────────────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
header.is-stuck {
  background: color-mix(in srgb, var(--ink) 76%, transparent);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--rule);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 20px; transition: padding .3s var(--ease); }
header.is-stuck .bar { padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; letter-spacing: -.02em; font-size: 1.02rem; }
.brand img { height: 30px; width: auto; transition: height .3s var(--ease), filter .3s var(--ease); filter: drop-shadow(0 0 14px rgba(28, 132, 215, .45)); }
header.is-stuck .brand img { height: 24px; }
.brand:hover img { filter: drop-shadow(0 0 18px rgba(99, 189, 247, .7)); }
.menu { display: flex; align-items: center; gap: 28px; }
.menu a { text-decoration: none; font-size: .93rem; color: var(--fg-dim); position: relative; padding-block: 4px; transition: color .2s var(--ease); }
.menu a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--brand-hi); transition: width .25s var(--ease); }
.menu a:hover, .menu a[aria-current] { color: var(--fg); }
.menu a:hover::after, .menu a[aria-current]::after { width: 100%; }
.menu .pill { border: 1px solid var(--rule-hi); border-radius: 999px; padding: 7px 16px; color: var(--fg); }
.menu .pill::after { display: none; }
.menu .pill:hover { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 14%, transparent); }
@media (max-width: 780px) { .hide-sm { display: none; } }

/* ── Fußzeile ────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--rule); padding-block: 28px 34px; font-size: .88rem; color: var(--muted); margin-top: clamp(72px, 9vw, 128px); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; align-items: center; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { text-decoration: none; transition: color .2s var(--ease); }
.foot a:hover { color: var(--fg); }
.foot .place { flex-basis: 100%; color: color-mix(in srgb, var(--muted) 70%, transparent); font-size: .82rem; }

/* ── Übersicht ───────────────────────────────────────────────────────── */
.intro { padding-block: clamp(56px, 8vw, 104px) clamp(32px, 5vw, 56px); max-width: 56ch; }
.intro h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); margin-block: 14px 18px; }
.intro p { color: var(--fg-dim); font-size: 1.08rem; }

.liste { list-style: none; border-top: 1px solid var(--rule); max-width: 820px; }
.liste li { border-bottom: 1px solid var(--rule); }
.liste a {
  display: grid; grid-template-columns: 120px 1fr; gap: 8px 32px;
  padding-block: 28px; text-decoration: none;
  transition: background .25s var(--ease);
}
.liste a:hover { background: color-mix(in srgb, var(--brand) 6%, transparent); }
.liste time { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .78rem; color: var(--muted); padding-top: 6px; }
.liste h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 8px; transition: color .2s var(--ease); }
.liste a:hover h2 { color: var(--brand-hi); }
.liste p { color: var(--fg-dim); max-width: 60ch; }
.liste .weiter { display: inline-block; margin-top: 10px; color: var(--brand-hi); font-size: .9rem; }
@media (max-width: 620px) { .liste a { grid-template-columns: 1fr; gap: 6px; } }

/* ── Artikel ─────────────────────────────────────────────────────────── */
article { padding-block: clamp(56px, 8vw, 104px) 0; }
.kopf { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.kopf .zeile { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 18px; }
.kopf h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); margin-bottom: 22px; }
.kopf .lede { font-size: clamp(1.12rem, 1.6vw, 1.3rem); color: var(--fg-dim); line-height: 1.5; }

.text { max-width: var(--measure); font-size: 1.06rem; }
.text > * + * { margin-top: 1.25em; }
.text h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin-top: 2.2em; padding-top: 1.1em; border-top: 1px solid var(--rule); }
.text h3 { font-size: 1.18rem; margin-top: 1.8em; }
.text p, .text li { color: color-mix(in srgb, var(--fg) 88%, var(--fg-dim)); }
.text strong { color: var(--fg); font-weight: 600; }
.text a { color: var(--brand-hi); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--brand-hi) 40%, transparent); }
.text a:hover { border-bottom-color: var(--brand-hi); }
.text ul, .text ol { padding-left: 1.3em; }
.text li + li { margin-top: .5em; }
.text blockquote { border-left: 2px solid var(--brand); padding: .4em 0 .4em 1.2em; color: var(--fg-dim); font-style: italic; }
.text code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .9em; background: rgba(168, 196, 232, .08); padding: .1em .4em; border-radius: 4px; }
.text .merksatz {
  margin-block: 2em;
  padding: 22px 26px;
  border: 1px solid var(--rule-hi);
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 7%, transparent);
  font-size: 1.12rem;
  font-family: "Bricolage Grotesque", "Inter Tight", sans-serif;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.4;
  color: var(--fg);
}

/* Entwurfsmarkierung – vor dem Veröffentlichen muss keine mehr übrig sein. */
mark.todo { background: color-mix(in srgb, var(--bee) 35%, transparent); color: var(--fg); padding: .05em .3em; border-radius: 3px; }

.autor {
  margin-top: clamp(48px, 7vw, 88px);
  max-width: var(--measure);
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
}
.autor img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 0 12px rgba(28, 132, 215, .4)); }
.autor p { color: var(--fg-dim); font-size: .98rem; }
.autor .cta { display: inline-block; margin-top: 12px; color: var(--brand-hi); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--brand-hi) 40%, transparent); }
.autor .cta:hover { border-bottom-color: var(--brand-hi); }

.zurueck { display: inline-block; margin-top: 40px; text-decoration: none; color: var(--muted); font-size: .92rem; }
.zurueck:hover { color: var(--fg); }

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