/* Citat: Gestaltung der Website. Farben und Maße stehen oben als Variablen. */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, 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: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, 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: "Source Serif 4";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-latin-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #ffffff;
  --surface: #f6f5f1;
  --surface-2: #ecebe5;
  --ink: #14171a;
  --ink-2: #3b4148;
  --muted: #646a72;
  --line: #e2e3e0;
  --accent: #f26b21;
  --accent-ink: #b5440a;
  --band-bg: #14171a;
  --band-ink: #ffffff;
  --band-muted: #b4bac1;
  --band-line: #2e343a;
  --warn-bg: #fff3d6;
  --warn-ink: #5c4300;
  --shadow: 0 1px 2px rgb(20 23 26 / 6%), 0 8px 24px rgb(20 23 26 / 6%);

  --sans: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: 1200px;
  --narrow: 720px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101214;
    --surface: #181b1e;
    --surface-2: #22262a;
    --ink: #f1f2f3;
    --ink-2: #cfd3d7;
    --muted: #9ba2aa;
    --line: #2a2f34;
    --accent-ink: #ff8f52;
    --band-bg: #1b1f23;
    --band-line: #343a41;
    --warn-bg: #3a2f10;
    --warn-ink: #ffe4a3;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px rgb(0 0 0 / 30%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101214;
  --surface: #181b1e;
  --surface-2: #22262a;
  --ink: #f1f2f3;
  --ink-2: #cfd3d7;
  --muted: #9ba2aa;
  --line: #2a2f34;
  --accent-ink: #ff8f52;
  --band-bg: #1b1f23;
  --band-line: #343a41;
  --warn-bg: #3a2f10;
  --warn-ink: #ffe4a3;
  --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px rgb(0 0 0 / 30%);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
main:focus {
  outline: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  font-weight: 600;
}
.skip:focus {
  top: 1rem;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow {
  width: 100%;
  max-width: calc(var(--narrow) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

/* ---------- Kopfzeile ---------- */

.preview-banner {
  margin: 0;
  padding: 0.45rem var(--gutter);
  background: var(--warn-bg);
  color: var(--warn-ink);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 1.1rem 0.9rem;
}

.brand {
  display: inline-flex;
  color: var(--ink);
  text-decoration: none;
}
.logo {
  display: block;
  height: 2.5rem;
  width: auto;
}
.logo-dot {
  fill: var(--accent);
}

.brand-claim {
  display: none;
  margin-left: 0.5rem;
  padding-left: 1rem;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.3;
}
.brand-claim span {
  display: block;
  color: var(--ink-2);
  font-weight: 500;
}
@media (min-width: 720px) {
  .brand-claim {
    display: block;
  }
  .logo {
    height: 2.9rem;
  }
}

.tools {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}

.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lang-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.1rem;
  padding: 0 0.7rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
}
.lang-item.is-current {
  background: var(--ink);
  color: var(--bg);
}
a.lang-item:hover {
  color: var(--ink);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.theme-toggle:hover {
  background: var(--surface-2);
}
.theme-toggle .icon {
  width: 1.25rem;
  height: 1.25rem;
}
.icon-moon {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun {
    display: none;
  }
  :root:not([data-theme="light"]) .icon-moon {
    display: block;
  }
}
:root[data-theme="dark"] .icon-sun {
  display: none;
}
:root[data-theme="dark"] .icon-moon {
  display: block;
}

.rubrics {
  border-top: 1px solid var(--line);
}
.rubrics ul {
  display: flex;
  gap: 0.25rem;
  margin-inline: -0.75rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.rubrics ul::-webkit-scrollbar {
  display: none;
}
.rubrics a {
  position: relative;
  display: block;
  padding: 0.85rem 0.75rem;
  color: var(--ink-2);
  font-size: 0.9688rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}
.rubrics a:hover {
  color: var(--ink);
}
.rubrics a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}
.rubrics a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--accent);
}

/* ---------- Allgemeine Bausteine ---------- */

.kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.kicker a {
  text-decoration: none;
}
.kicker a:hover {
  text-decoration: underline;
}

.meta {
  color: var(--muted);
  font-size: 0.875rem;
}
.meta-sep {
  margin-inline: 0.45em;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
}
.badge-pending {
  background: var(--warn-bg);
  color: var(--warn-ink);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.9688rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.button:hover {
  transform: translateY(-1px);
}
.button-light {
  border-color: var(--band-ink);
  background: var(--band-ink);
  color: #14171a;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
}

.empty {
  padding: 3rem 0;
  color: var(--muted);
  font-size: 1.125rem;
}

.section {
  padding-block: clamp(2rem, 5vw, 3.5rem);
}
.section + .section {
  border-top: 1px solid var(--line);
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.section-title {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.section-title::after {
  content: ".";
  color: var(--accent);
}
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}
.section-link:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Titel: gleichmäßige Zeilen. Nur sehr lange zusammengesetzte Wörter dürfen getrennt werden. */
.card-title,
.article-head h1,
.page-head h1,
.archive-list a {
  text-wrap: balance;
  hyphens: auto;
  hyphenate-limit-chars: 18 7 7;
  -webkit-hyphenate-limit-before: 7;
  -webkit-hyphenate-limit-after: 7;
}
/* Fließtext: Silbentrennung nur auf schmalen Bildschirmen, wo lange Wörter sonst Lücken reißen. */
@media (max-width: 599px) {
  .card-lead,
  .article-lead,
  .article-body,
  .prose,
  .receipt {
    hyphens: auto;
    hyphenate-limit-chars: 12 5 5;
    -webkit-hyphenate-limit-before: 5;
    -webkit-hyphenate-limit-after: 5;
  }
}

/* ---------- Karten ---------- */

.grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}
.card-media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  aspect-ratio: 16 / 9;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card-media img {
  transform: scale(1.025);
}
.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
}
.card-title {
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
  overflow-wrap: break-word;
}
.card-title a {
  text-decoration: none;
}
.card-title a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.1em;
}
.card-lead {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: 1.0313rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.lead-story {
  padding-block: clamp(1.5rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.card-featured {
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.card-featured .card-title {
  font-size: clamp(1.75rem, 3.3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.06;
}
.card-featured .card-lead {
  font-size: clamp(1.0938rem, 1.6vw, 1.25rem);
  -webkit-line-clamp: 5;
  line-clamp: 5;
}
.card-featured .card-body {
  gap: 0.9rem;
  justify-content: center;
}
@media (min-width: 900px) {
  .card-featured {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
  }
}

/* ---------- Band: So arbeiten wir ---------- */

.method-band {
  background: var(--band-bg);
  color: var(--band-ink);
}
.method-band-inner {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.method-band-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.method-band h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.method-band-intro p {
  color: var(--band-muted);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.5;
}
.method-steps {
  display: grid;
  gap: 1.75rem;
}
.method-steps li {
  padding-top: 1.1rem;
  border-top: 1px solid var(--band-line);
}
.step-number {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.method-steps h3 {
  margin-bottom: 0.35rem;
  font-size: 1.25rem;
  font-weight: 600;
}
.method-steps p {
  color: var(--band-muted);
  font-size: 1rem;
  line-height: 1.55;
}
@media (min-width: 700px) {
  .method-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  .method-band-inner {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: start;
  }
}

/* ---------- Seitenkopf, Rubrik, Archiv ---------- */

.page-head {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 3vw, 2.25rem);
}
.page-head h1 {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.page-head h1::after {
  content: ".";
  color: var(--accent);
}
.page-count {
  color: var(--muted);
  font-size: 0.9375rem;
}
.page-lead {
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  line-height: 1.5;
}
.page-head + .grid,
.page-head + .empty {
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.archive-day {
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}
.archive-day:last-child {
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}
.archive-day h2 {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.archive-list li {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.8rem;
}
.archive-list li + li {
  border-top: 1px dashed var(--line);
}
.archive-list time {
  padding-top: 0.15rem;
  color: var(--muted);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}
.archive-list a {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}
.archive-list a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

/* ---------- Artikel ---------- */

.article-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 3vw, 2rem);
}
.article-head h1 {
  font-size: clamp(2rem, 5.6vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.06;
  overflow-wrap: break-word;
}
.article-lead {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.1875rem, 2.4vw, 1.4375rem);
  font-weight: 500;
  line-height: 1.45;
}
.article-head .meta a {
  color: var(--ink-2);
}

.article-figure {
  width: 100%;
  max-width: calc(960px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.article-figure img {
  width: 100%;
  border-radius: var(--radius);
  background: var(--surface);
}
.article-figure.is-photo img {
  max-height: 70vh;
  object-fit: cover;
}
.article-figure figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.8438rem;
}
@media (max-width: 599px) {
  .article-figure {
    padding-inline: 0;
  }
  .article-figure img {
    border-radius: 0;
  }
  .article-figure figcaption {
    padding-inline: var(--gutter);
  }
}

.article-body {
  padding-block: clamp(1.5rem, 4vw, 2.5rem) 0.5rem;
  font-family: var(--serif);
  font-size: clamp(1.125rem, 1.9vw, 1.25rem);
  line-height: 1.68;
}
.article-body > p + p {
  margin-top: 1.25em;
}
.refs {
  margin-left: 0.2em;
  font-family: var(--sans);
  font-size: 0.68em;
  font-weight: 600;
  line-height: 0;
  white-space: nowrap;
}
.refs a {
  display: inline-block;
  min-width: 1.5em;
  margin-left: 0.15em;
  padding: 0.15em 0.35em;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.refs a:hover {
  background: var(--accent);
  color: #14171a;
}

.review-notes {
  margin-bottom: 1.75rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: var(--warn-bg);
  color: var(--warn-ink);
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.review-notes ul {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.6rem;
  padding-left: 1.1rem;
  list-style: disc;
}

.correction-note {
  margin-top: 1.75rem;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
}
.correction-note p + p {
  margin-top: 0.6rem;
}

.article-foot {
  display: grid;
  gap: 1.25rem;
  padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(2.5rem, 6vw, 4rem);
}

.source-box {
  padding: clamp(1.15rem, 3vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.source-box h2,
.share h2 {
  margin-bottom: 0.6rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.source-name {
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
}
.source-date {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.9375rem;
}
.source-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
}

.receipts {
  border-radius: var(--radius);
  background: var(--surface);
}
.receipts summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: clamp(1.15rem, 3vw, 1.6rem);
  cursor: pointer;
  list-style: none;
}
.receipts summary::-webkit-details-marker {
  display: none;
}
.receipts-heading {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.receipts-title {
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.25;
}
.receipts-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: #14171a;
  font-size: 0.875rem;
  font-weight: 700;
}
.receipts-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
}
.receipts details[open] .icon-chevron {
  transform: rotate(180deg);
}
.receipts-intro {
  padding: 0 clamp(1.15rem, 3vw, 1.6rem) 1rem;
  color: var(--ink-2);
  font-size: 0.9688rem;
  line-height: 1.55;
}
.receipt-list {
  counter-reset: receipt;
  padding: 0 clamp(1.15rem, 3vw, 1.6rem) clamp(1.15rem, 3vw, 1.6rem);
}
.receipt {
  position: relative;
  counter-increment: receipt;
  padding: 1.1rem 0 1.1rem 2.75rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 1.5rem;
}
.receipt::before {
  content: counter(receipt);
  position: absolute;
  left: 0;
  top: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.8438rem;
  font-weight: 700;
}
.receipt:target::before {
  background: var(--accent);
  color: #14171a;
}
.receipt-claim {
  font-size: 1.0313rem;
  font-weight: 500;
  line-height: 1.45;
}
.receipt blockquote {
  margin-top: 0.6rem;
  padding-left: 0.9rem;
  border-left: 3px solid var(--accent);
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.55;
}
.receipt-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.8438rem;
}

.ai-note {
  padding: 1rem 1.15rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.ai-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

.share ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.chip:hover {
  border-color: var(--ink);
}
.chip.is-done {
  border-color: var(--accent);
}

.article + .wrap {
  border-top: 1px solid var(--line);
}

/* ---------- Textseiten ---------- */

.draft-note {
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: var(--warn-bg);
  color: var(--warn-ink);
  font-size: 0.9375rem;
  font-weight: 500;
}

.prose-page {
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}
.prose {
  font-family: var(--serif);
  font-size: clamp(1.0938rem, 1.8vw, 1.1875rem);
  line-height: 1.65;
}
.prose h2 {
  margin: 2.25em 0 0.6em;
  font-family: var(--sans);
  font-size: clamp(1.3125rem, 2.6vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.prose > h2:first-child {
  margin-top: 0;
}
.prose p + p,
.prose ul + p,
.prose ol + p,
.prose p + ul,
.prose p + ol {
  margin-top: 0.9em;
}
.prose ul,
.prose ol {
  display: grid;
  gap: 0.55em;
  padding-left: 0;
}
.prose ul li {
  position: relative;
  padding-left: 1.5em;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0.25em;
  top: 0.62em;
  width: 0.42em;
  height: 0.42em;
  border-radius: 50%;
  background: var(--accent);
}
.prose ol {
  counter-reset: step;
}
.prose ol li {
  position: relative;
  counter-increment: step;
  padding-left: 2.6em;
}
.prose ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75em;
  height: 1.75em;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 0.82em;
  font-weight: 700;
}
.prose a {
  color: var(--accent-ink);
}
.prose .missing {
  padding: 0.05em 0.35em;
  border-radius: 4px;
  background: var(--warn-bg);
  color: var(--warn-ink);
  font-family: var(--sans);
  font-size: 0.9em;
}

.correction-list {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.75rem;
  font-family: var(--sans);
}
.correction-list li {
  display: grid;
  gap: 0.3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.correction-list time {
  color: var(--muted);
  font-size: 0.875rem;
}
.correction-list a {
  font-weight: 600;
}
.prose .empty {
  padding: 1.5rem 0 0;
  font-family: var(--sans);
  font-size: 1rem;
}

.not-found {
  display: grid;
  gap: 3rem;
  padding-block: clamp(3rem, 8vw, 6rem);
}
.not-found section {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}
.not-found h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
}

.root-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
}
.root-choice {
  display: grid;
  gap: 1.25rem;
  justify-items: center;
  padding: 2rem;
  text-align: center;
}
.root-choice .logo {
  height: 4rem;
}
.root-choice p {
  color: var(--ink-2);
  font-size: 1.125rem;
}
.root-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ---------- Fußzeile ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.9375rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
}
@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  }
}
.footer-brand {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  justify-items: start;
}
.footer-brand .logo {
  height: 2.25rem;
}
.footer-brand p {
  color: var(--ink-2);
  font-weight: 500;
}
.footer-brand .footer-note {
  max-width: 28ch;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
}
.site-footer h2 {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-footer ul + h2 {
  margin-top: 1.5rem;
}
.site-footer ul {
  display: grid;
  gap: 0.5rem;
}
.site-footer li {
  overflow-wrap: anywhere;
}
.site-footer a {
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

@media print {
  .site-header,
  .site-footer,
  .share,
  .preview-banner,
  .method-band,
  .article + .wrap {
    display: none;
  }
  .receipts details > * {
    display: block;
  }
}
