/* Blog Raffael Weiss intu.AI. Design wie die Hauptseite (site/assets/css/seite.css):
   dieselben Werte in :root, dieselben Schriften, helle Fassung. Kein Framework, kein Fremdhost. */
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-semibold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/inter-extrabold.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --ink: #1D1E20;
  --ink-soft: #55586C;
  --akzent: #673DE6;
  --akzent-tief: #5229C9;
  --stark: #1F1346;
  --strich: #00C4CC;
  --zart: #F2F3F6;
  --rand-hell: #E3E0F2;
  --flur: linear-gradient(to bottom, #F3F0FE 0%, #FFFFFF 82%);
  --schatten: 0 2px 4px hsl(252 45% 26% / .05), 0 14px 32px -10px hsl(252 45% 26% / .20);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --leiste-h: 68px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--leiste-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.7; }
img { max-width: 100%; height: auto; }
a { color: var(--akzent); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--akzent-tief); }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 3px; border-radius: 4px; }

.sprung { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 10px 14px; background: var(--akzent); color: #fff; font-weight: 800; border-radius: 10px; }
.sprung:focus { top: 12px; }

/* ---------------------------------------------------------------- Leiste */
.leiste { position: sticky; top: 0; z-index: 50; height: var(--leiste-h); display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter); background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--rand-hell); }
.leiste__marke img { display: block; height: 38px; width: auto; }
.leiste__links { display: flex; align-items: center; gap: 22px; }
.leiste__links a.text { color: var(--stark); font-weight: 600; font-size: .95rem; text-decoration: none; }
.leiste__links a.text:hover { color: var(--akzent); }
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; border: 0; border-radius: 10px;
  background: var(--akzent); color: #fff; font-weight: 800; font-size: .94rem; line-height: 1; white-space: nowrap; text-decoration: none;
  box-shadow: 0 1px 2px hsl(252 45% 26% / .10), inset 0 1px 0 rgba(255,255,255,.22); transition: background-color 150ms, transform 140ms; }
.knopf:hover { background: var(--akzent-tief); color: #fff; }
.knopf:active { transform: translateY(1px); }
@media (max-width: 640px) { .leiste__links a.text { display: none; } }

/* ------------------------------------------------------------------ Kopf */
.kopf { background: var(--flur); padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(28px, 4vw, 48px); }
.kopf__innen { max-width: 760px; margin: 0 auto; }
.merker { display: inline-block; margin: 0 0 18px; padding: 4px 12px; border-radius: 999px; background: #ECE7FD; color: var(--akzent-tief); font-weight: 800; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.kopf h1 { margin: 0; color: var(--stark); font-weight: 800; font-size: clamp(2.3rem, 1.2rem + 4.6vw, 4.2rem); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.unter { margin: 18px 0 0; max-width: 34em; font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem); line-height: 1.4; color: var(--ink); text-wrap: pretty; }
.zeile { display: flex; align-items: center; gap: 14px; margin-top: 28px; color: var(--ink-soft); font-size: .95rem; line-height: 1.35; }
.zeile img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--rand-hell); }
.zeile strong { color: var(--stark); font-weight: 800; }

/* --------------------------------------------------------------- Artikel */
.seite { padding: 0 var(--gutter); }
.artikel { max-width: 760px; margin: 0 auto; padding: 8px 0 24px; }
.artikel > * { max-width: 100%; }
.artikel p, .artikel ul, .artikel ol { margin: 0 0 1.15em; text-wrap: pretty; }
.artikel ul, .artikel ol { padding-left: 1.4em; }
.artikel li { margin: .35em 0; }
.artikel li > p { margin: 0 0 .5em; }
.artikel strong { color: var(--stark); font-weight: 800; }
.artikel h2 { margin: 2.6em 0 .6em; color: var(--stark); font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); line-height: 1.12; letter-spacing: -.028em; text-wrap: balance; }
.artikel h3 { margin: 2em 0 .5em; color: var(--stark); font-weight: 800; font-size: clamp(1.2rem, 1.1rem + .5vw, 1.45rem); line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
.artikel h2 .anker, .artikel h3 .anker { margin-left: .4em; color: var(--rand-hell); text-decoration: none; font-weight: 600; opacity: 0; transition: opacity 150ms; }
.artikel h2:hover .anker, .artikel h3:hover .anker, .artikel .anker:focus-visible { opacity: 1; }
.artikel hr { border: 0; border-top: 1px solid var(--rand-hell); margin: 2.4em 0; }
.artikel blockquote { margin: 1.4em 0; padding: .2em 0 .2em 1.2em; border-left: 4px solid var(--strich); color: var(--ink-soft); }
.artikel code { font-family: var(--mono); font-size: .88em; background: var(--zart); padding: .12em .38em; border-radius: 5px; overflow-wrap: anywhere; }
.codebox { position: relative; margin: 1.4em 0; }
.artikel pre { margin: 0; padding: 18px 20px; background: #1F1346; color: #EDE9FB; border-radius: 12px; overflow-x: auto; font-size: .86rem; line-height: 1.6; tab-size: 2; -webkit-overflow-scrolling: touch; }
.artikel pre code { background: none; padding: 0; color: inherit; font-size: inherit; overflow-wrap: normal; }
.codebox .kopieren { position: absolute; top: 8px; right: 8px; min-height: 32px; padding: 0 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 8px;
  background: rgba(255,255,255,.08); color: #EDE9FB; font: 600 .78rem var(--font); cursor: pointer; }
.codebox .kopieren:hover { background: rgba(255,255,255,.18); }
.tabelle { margin: 1.4em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rand-hell); border-radius: 12px; }
.tabelle table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .93rem; line-height: 1.5; }
.tabelle th { background: #F3F0FE; color: var(--stark); font-weight: 800; text-align: left; }
.tabelle th, .tabelle td { padding: 10px 14px; border-bottom: 1px solid var(--rand-hell); vertical-align: top; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle tbody tr:nth-child(even) td { background: #FAFAFD; }

/* Inhaltsverzeichnis */
.inhalt { margin: 0 0 2.4em; padding: 20px 22px; background: #F8F6FE; border: 1px solid var(--rand-hell); border-radius: 14px; }
.inhalt summary { cursor: pointer; color: var(--stark); font-weight: 800; font-size: 1.05rem; }
.inhalt ol { margin: 14px 0 0; padding-left: 1.3em; font-size: .98rem; }
.inhalt li { margin: .3em 0; }
.inhalt ol ol { margin-top: .2em; font-size: .93rem; }
.inhalt a { text-decoration: none; }
.inhalt a:hover { text-decoration: underline; }

/* Kasten am Schluss */
.schluss { margin: 3em 0 0; padding: clamp(22px, 4vw, 36px); border-radius: 18px; background: linear-gradient(173deg, #FFFFFF 0%, #ECE7FD 100%); border: 1px solid var(--rand-hell); box-shadow: var(--schatten); }
.schluss h2 { margin: 0 0 .4em; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); }
.schluss p { margin: 0 0 1.1em; }
.schluss .knopf { min-height: 48px; padding: 0 24px; font-size: 1rem; }

/* ------------------------------------------------------------- Blogliste */
.liste { max-width: 880px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) 0 40px; display: grid; gap: 20px; }
.karte { display: block; padding: clamp(20px, 3.4vw, 32px); border: 1px solid var(--rand-hell); border-radius: 18px; background: #fff; box-shadow: var(--schatten); text-decoration: none; color: var(--ink); transition: transform 160ms, border-color 160ms; }
.karte:hover { transform: translateY(-2px); border-color: var(--akzent); color: var(--ink); }
.karte h2 { margin: 6px 0 8px; color: var(--stark); font-weight: 800; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); line-height: 1.12; letter-spacing: -.028em; }
.karte p { margin: 0; color: var(--ink-soft); }
.karte .meta { margin-top: 14px; font-size: .88rem; color: var(--ink-soft); }

/* --------------------------------------------------------------- Rechtliches */
.recht { max-width: 720px; margin: 0 auto; padding: clamp(32px, 6vw, 72px) var(--gutter); }
.recht h1 { margin: 0 0 .3em; color: var(--stark); font-weight: 800; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); letter-spacing: -.03em; line-height: 1.05; }
.recht h2 { margin: 1.8em 0 .4em; color: var(--stark); font-weight: 800; font-size: 1.25rem; }
.recht__stand { color: var(--ink-soft); }

/* ----------------------------------------------------------------- Fuß */
.fuss { margin-top: 56px; padding: 32px var(--gutter) 40px; background: var(--zart); color: var(--ink-soft); font-size: .93rem; line-height: 1.6; }
.fuss__innen { max-width: 880px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; }
.fuss a { color: var(--stark); font-weight: 600; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.fuss p { margin: 0; max-width: 34em; }

@media print {
  .leiste, .fuss, .schluss .knopf, .kopieren, .inhalt { display: none; }
  .artikel pre { background: #fff; color: #000; border: 1px solid #999; white-space: pre-wrap; }
}
