/* ============================================================
   Webfonts (self-hosted, DSGVO-konform)
   Cinzel (OFL) – Worthington-Arcade-Ersatz für Headlines
   Lora (OFL)   – Corporate-A-Ersatz für Body/UI
   ============================================================ */
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/cinzel-latin-ext.13f7088db160.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Cinzel";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/cinzel-latin.e7ed1ab78a17.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: "Lora";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/lora-normal-latin-ext.1d361631357e.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Lora";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/lora-normal-latin.9577af3ccda5.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: "Lora";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/lora-italic-latin-ext.bd592077c416.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Lora";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/lora-italic-latin.1640b0b69ef0.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;
}

/* ============================================================
   Design-Token
   ============================================================ */
:root {
  --bordeaux: #6b2213;
  --bordeaux-light: #7d2818;
  --gold: #e8ac38;
  --gold-dark: #59510b;
  --gold-dark-light: #706c12;
  --dark-orange: #ad582a;
  --text: #231f20;
  --text-muted: #666;
  --border: #e0e0e0;
  --bg: #fff;
  --bg-subtle: #f8f7f5;
  --radius: 4px;
  --max-w: 1200px;
  --max-w-text: 740px;
  --font-display: "Cinzel", "Georgia", serif;
  --font-serif: "Lora", "Georgia", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --error: #c0392b;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ============================================================
   Reset / Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--bordeaux); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

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

/* Global content image cap – proportionales Skalieren ohne Crop.
   max-width + max-height + width/height auto bewirkt, dass der Browser
   das Bild in die kleinste passende Schachtel skaliert. */
.body img,
.body .rich-text img,
.body-image img {
  max-width: 100%;
  max-height: 600px;
  width: auto;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   Skip link (Accessibility)
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--bordeaux);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.1s;
}
.skip-link:focus {
  top: 0;
  text-decoration: none;
}

/* ============================================================
   Reading progress bar
   ============================================================ */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--bordeaux);
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ============================================================
   Layout helpers
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============================================================
   Site header
   ============================================================ */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 0 1.25rem;
}

.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 3.5rem;
}

.site-header__brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.site-header__logo {
  height: 2.5rem;
  width: auto;
  flex-shrink: 0;
}

.site-header__brand-text {
  display: flex;
  flex-direction: column;
}

.site-header__name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.site-header__name:hover { text-decoration: none; }

.site-header__tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}

.site-header__nav a {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.site-header__nav a:hover,
.site-header__nav a:focus { color: var(--bordeaux); }

.site-header__search {
  margin-left: auto;
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.25rem 0.2rem 0.85rem;
  gap: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header__search:focus-within {
  border-color: var(--bordeaux);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bordeaux) 12%, transparent);
}

.site-header__search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.875rem;
  color: var(--text);
  width: 160px;
  padding: 0;
}
.site-header__search input::placeholder { color: var(--text-muted); }

.site-header__search button {
  background: var(--bordeaux);
  color: #fff;
  border: none;
  border-radius: 999px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.15s;
  padding: 0;
}
.site-header__search button:hover { background: var(--bordeaux-light); }

/* Hamburger button – nur auf Mobilgeräten sichtbar */
.site-header__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-direction: column;
  gap: 5px;
}

.site-header__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 640px) {
  .site-header__hamburger { display: flex; }

  .site-header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem;
    gap: 0.75rem;
    z-index: 500;
  }

  .site-header__nav--open {
    display: flex;
  }

  .site-header__nav--open .site-header__search {
    width: 100%;
    margin-left: 0;
    margin-top: 0.25rem;
  }

  .site-header__nav--open .site-header__search input {
    flex: 1;
  }

  .site-header {
    position: relative;
  }

  /* Hamburger → X Animation */
  .site-header__hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .site-header__hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .site-header__hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ============================================================
   Site footer
   ============================================================ */
.site-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--border);
  padding: 2rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--bordeaux); }

.site-footer__firm {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}

.site-footer__firm-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer__firm-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
}
.site-footer__firm-link:hover { color: var(--bordeaux); text-decoration: none; }

.site-footer__firm-logo {
  height: 40px;
  width: auto;
  opacity: 0.8;
}

/* ============================================================
   Homepage hero
   ============================================================ */
.home-hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.home-hero__headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--text);
}

.home-hero__body {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  max-width: 60ch;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--bordeaux);
  color: #fff;
}
.btn--primary:hover, .btn--primary:focus {
  background: var(--bordeaux-light);
  text-decoration: none;
}

.btn--outline {
  background: transparent;
  color: var(--bordeaux);
  border: 1px solid var(--bordeaux);
}
.btn--outline:hover, .btn--outline:focus {
  background: var(--bordeaux);
  color: #fff;
  text-decoration: none;
}

/* ============================================================
   Homepage sections
   ============================================================ */
.home-section {
  padding: 3rem 0;
}

.home-section + .home-section {
  border-top: 1px solid var(--border);
}

.home-section__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
  color: var(--text);
}

.home-section__title span {
  display: inline-block;
  border-bottom: 2px solid var(--bordeaux);
  padding-bottom: 0.15rem;
}

/* Featured post on homepage */
.featured-post {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .featured-post {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.featured-post__image {
  aspect-ratio: 3/2;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-subtle);
}

.featured-post__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-post__kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bordeaux);
  margin: 0 0 0.5rem;
}

.featured-post__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.6rem;
}

.featured-post__title a { color: var(--text); }
.featured-post__title a:hover { color: var(--bordeaux); text-decoration: none; }

.featured-post__meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.featured-post__teaser {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

/* ============================================================
   Post grid + cards
   ============================================================ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.post-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  transition: box-shadow 0.2s ease;
}

.post-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.post-card .thumb {
  display: block;
  aspect-ratio: 2/1;
  background: var(--bg-subtle);
  overflow: hidden;
}

.post-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.post-card:hover .thumb img { transform: scale(1.02); }

.thumb--placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-subtle);
}

.post-card .content { padding: 1rem; }

.post-card .title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0 0 0.35rem;
}

.post-card .title a { color: var(--text); }
.post-card .title a:hover { color: var(--bordeaux); text-decoration: none; }

.post-card .meta {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 0 0 0.5rem;
}

.post-card .teaser {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.6rem;
}

.post-card .tags { display: flex; gap: 0.35rem; flex-wrap: wrap; margin: 0; }

.post-card .tag {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.post-card .meta svg { vertical-align: -2px; }

@media (min-width: 900px) {
  .post-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 480px) {
  .post-grid { gap: 0.75rem; }
}

/* ============================================================
   Post two-column layout (body + sidebar)
   ============================================================ */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}

.post-layout__main { min-width: 0; max-width: 700px; }

.post-sidebar {
  position: sticky;
  top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.post-sidebar__section {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.post-sidebar__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

/* Sidebar TOC (reuses post-toc tokens but without its own box) */
.post-sidebar__section .post-toc__list { font-size: 0.875rem; }
.post-sidebar__section .post-toc__item > a { color: var(--text-muted); }
.post-sidebar__section .post-toc__item > a:hover { color: var(--bordeaux); }

/* Sidebar author card */
.sidebar-author + .sidebar-author {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.sidebar-author {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.sidebar-author__photo {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--border);
}

.sidebar-author__photo img {
  width: 100%; height: 100%; object-fit: cover;
}

.sidebar-author__name {
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0 0 0.1rem;
  line-height: 1.2;
}

.sidebar-author__role {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* Sidebar tags */
.sidebar-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }

/* Sidebar: manuell verknüpfte Beiträge */
.sidebar-related {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sidebar-related li {
  display: flex;
  gap: 0.3rem;
  align-items: baseline;
}
.sidebar-related li::before {
  content: "→";
  color: var(--bordeaux);
  flex-shrink: 0;
}
.sidebar-related a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.35;
}
.sidebar-related a:hover { color: var(--bordeaux); }

/* Collapse to single column on smaller screens */
@media (max-width: 960px) {
  .post-layout {
    grid-template-columns: 1fr;
  }
  .post-sidebar {
    position: static;
    order: -1;
  }
}

/* ============================================================
   Blog index page
   ============================================================ */
.blog-index-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.blog-index-header__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.blog-index-header__count {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Serien-Showcase */
.series-showcase {
  margin: 2rem 0 1.5rem;
}
.series-showcase__title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.series-showcase__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}
.series-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-subtle);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.series-card:hover {
  border-color: var(--bordeaux);
  background: var(--bg);
}
.series-card__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.series-card__desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.filter-pills {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.filter-pills__group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
}

.filter-pills__scroller {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-height: 2.25rem; /* ~1 row */
  overflow: hidden;
  position: relative;
}

.filter-pills__scroller.is-expanded {
  max-height: 1000px;
}

/* Right-edge fade when collapsed */
.filter-pills__scroller:not(.is-expanded)::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 5rem;
  height: 100%;
  background: linear-gradient(to right, transparent, var(--bg));
  pointer-events: none;
}

.filter-pills__more {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.1rem 0;
  text-align: left;
  transition: color 0.15s;
}
.filter-pills__more:hover { color: var(--bordeaux); }

.filter-pill {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  background: var(--bg);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

/* Checkboxen innerhalb von Pill-Labels verstecken */
.filter-pill input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.filter-pill:hover {
  border-color: var(--bordeaux);
  color: var(--bordeaux);
  text-decoration: none;
}

.filter-pill--active {
  background: var(--bordeaux);
  border-color: var(--bordeaux);
  color: #fff;
  font-weight: 600;
}

.filter-pill--active:hover {
  color: #fff;
}

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  margin-top: 3rem;
  font-size: 0.9rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.pagination a:hover,
.pagination a:focus {
  border-color: var(--bordeaux);
  color: var(--bordeaux);
}

.pagination .current {
  background: var(--bordeaux);
  border-color: var(--bordeaux);
  color: #fff;
}

/* ============================================================
   Blog post page
   ============================================================ */
.post-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.post-header__kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bordeaux);
  margin: 0 0 0.6rem;
}

.post-header__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.post-header__meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.post-header__meta svg { vertical-align: -2px; }

.post-hero-image {
  margin-bottom: 2rem;
  /* Kein overflow:hidden, kein Crop – Bild zeigt in nativem Seitenverhältnis */
  position: relative;
  display: inline-block;
  width: 100%;
}

.post-hero-image img {
  max-width: 100%;
  max-height: 560px;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  margin-left: auto;
  margin-right: auto;
}

.post-hero-image__credit {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
}

.post-hero-image__credit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  cursor: default;
  user-select: none;
  backdrop-filter: blur(2px);
}

.post-hero-image__credit-tooltip {
  display: none;
  position: absolute;
  bottom: 100%;
  right: 0;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.35rem 0.6rem 0.75rem;
  border-radius: var(--radius);
  white-space: nowrap;
  backdrop-filter: blur(2px);
  pointer-events: none;
}

.post-hero-image__credit-tooltip a {
  color: #ccc;
}

.post-hero-image__credit:hover .post-hero-image__credit-tooltip {
  display: block;
  pointer-events: auto;
}

/* Body / Rich text */
.body {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text);
}

.body .rich-text h2,
.body .rich-text h3,
.body .rich-text h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

.body .rich-text h2 { font-size: 1.4rem; }
.body .rich-text h3 { font-size: 1.2rem; }
.body .rich-text h4 { font-size: 1.05rem; }

.body .rich-text a { color: var(--bordeaux); }
.body .rich-text a:hover { text-decoration: underline; }

.body .rich-text blockquote {
  border-left: 3px solid var(--bordeaux);
  margin: 1.5rem 0;
  padding: 0.5rem 0 0.5rem 1.25rem;
  color: var(--text-muted);
  font-style: italic;
}

.body .rich-text ul,
.body .rich-text ol {
  padding-left: 1.5rem;
  margin: 0.75rem 0;
}

.body .rich-text li + li { margin-top: 0.3rem; }

/* Body images (ImageChooserBlock) */
.body-image {
  margin: 1.5rem 0;
}

.body-image img {
  border-radius: var(--radius); /* dekorative Abrundung; Größe via globale Regel */
}

.body-image__credit {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  display: flex;
  gap: 0.4em;
  flex-wrap: wrap;
}

.body-image__credit a {
  color: inherit;
  text-decoration: underline;
}

.body-image__license {
  opacity: 0.8;
}

/* ============================================================
   Post TOC
   ============================================================ */
.post-toc {
  margin: 1.5rem 0 2rem;
  padding: 1rem 1.25rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.5;
}

.post-toc__title {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.post-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-toc__item { margin: 0.25rem 0; }

.post-toc__item > a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.post-toc__item > a:hover,
.post-toc__item > a:focus,
.post-toc__item > a.post-toc__link--active {
  color: var(--bordeaux);
}

.post-toc__item > a.post-toc__link--active {
  font-weight: 600;
}

.post-toc__list > li > ol,
.post-toc__list > li > ul {
  list-style: none;
  margin: 0.25rem 0 0.25rem 1.25rem;
  padding: 0;
  border-left: 1px solid var(--border);
}

.post-toc__list > li > ol > li,
.post-toc__list > li > ul > li {
  padding-left: 0.65rem;
}

/* ============================================================
   Callout blocks
   ============================================================ */
.callout {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border-left: 3px solid transparent;
  font-size: 0.95rem;
}

.callout--info {
  background: #f0f6ff;
  border-left-color: #3b82f6;
}

.callout--warn {
  background: #fff8ed;
  border-left-color: var(--gold);
}

/* ============================================================
   Post lead & subtitle
   ============================================================ */
.post-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 1.5rem 0 0;
  line-height: 1.6;
  max-width: 700px;
}

.post-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

/* ============================================================
   Series navigation banner
   ============================================================ */
.post-series {
  margin: 1.5rem 0 0;
  border-left: 3px solid var(--bordeaux);
  padding: 0.75rem 1rem;
  background: var(--bg-subtle);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.post-series__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--bordeaux);
  margin-bottom: 0.25rem;
}

.post-series__name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.post-series__position {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.post-series__nav {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  font-size: 0.82rem;
}

.post-series__nav a {
  color: var(--bordeaux);
  text-decoration: none;
}

.post-series__nav a:hover { text-decoration: underline; }

/* ============================================================
   Post navigation
   ============================================================ */
.post-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
}

.post-nav__prev { text-align: left; }
.post-nav__next { text-align: right; }

.post-nav a { color: var(--text-muted); transition: color 0.15s; }
.post-nav a:hover { color: var(--bordeaux); text-decoration: none; }

.post-nav__middle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.post-back-to-top {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.15s;
}

.post-back-to-top:hover,
.post-back-to-top:focus { color: var(--bordeaux); }

/* ============================================================
   Share links
   ============================================================ */
.post-share {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.875rem;
}

.post-share__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.post-share a {
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.25rem 0.65rem;
  font-size: 0.8rem;
  transition: border-color 0.15s, color 0.15s;
  text-decoration: none;
}

.post-share a:hover {
  border-color: var(--bordeaux);
  color: var(--bordeaux);
}

/* ============================================================
   Related posts
   ============================================================ */
.related-posts {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.related-posts__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
}

.related-posts .post-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 640px) {
  .related-posts .post-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Author block (in post)
   ============================================================ */
.post-author {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.post-author__photo {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-subtle);
}

.post-author__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-author__name {
  font-weight: 700;
  margin: 0 0 0.2rem;
}

.post-author__bio { color: var(--text-muted); margin: 0; }

/* ============================================================
   About page
   ============================================================ */
.about-header {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.about-header__photo {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-subtle);
}

.about-header__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-header__name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
}

.about-header__credentials {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.about-header__intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 55ch;
}

/* ============================================================
   Contact form honeypot
   ============================================================ */
.hp-field-wrapper {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0;
}

.hp-field-input {
  border: 0 !important;
  padding: 0 !important;
}

/* ============================================================
   Contact page layout
   ============================================================ */
.contact-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.contact-page__header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.contact-page__title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--bordeaux);
  margin: 0 0 0.75rem;
}

.contact-page__intro {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.contact-page__intro p:last-child { margin-bottom: 0; }

/* ============================================================
   Contact form
   ============================================================ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form__alert {
  padding: 0.875rem 1rem;
  background: #fff3f3;
  border: 1px solid #f5c6c6;
  border-left: 3px solid #c0392b;
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: #c0392b;
}

.contact-form__alert p { margin: 0; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-group__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.form-required {
  color: var(--bordeaux);
  margin-left: 0.2rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.625rem 0.875rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--bordeaux);
  box-shadow: 0 0 0 3px rgba(123, 29, 50, 0.08);
}

.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}

.form-group--error .contact-form input,
.form-group--error input,
.form-group--error textarea,
.form-group--error select {
  border-color: #c0392b;
}

/* Checkboxes (z.B. DSGVO-Einwilligung) */
.contact-form input[type="checkbox"] {
  width: auto;
  margin-right: 0.4rem;
  accent-color: var(--bordeaux);
}

.contact-form .form-group:has(input[type="checkbox"]) {
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
}

.contact-form .form-group:has(input[type="checkbox"]) .form-group__label {
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-group__help {
  font-size: 0.825rem;
  color: var(--text-muted);
}

.form-group__error {
  font-size: 0.825rem;
  color: #c0392b;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.form-group__error::before {
  content: "⚠";
  font-size: 0.75em;
}

.contact-form__footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.contact-form__required-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* Success state */
.contact-success {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1.25rem 1.5rem;
  background: #f3fbf5;
  border: 1px solid #b7dfbf;
  border-left: 3px solid #2e7d32;
  border-radius: var(--radius);
  color: #1b5e20;
}

.contact-success svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.contact-success p:last-child { margin-bottom: 0; }

/* ============================================================
   Search results page
   ============================================================ */
.search-header {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.search-header__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.search-page__form {
  margin: 1.5rem 0 0.5rem;
}

.search-page__input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  max-width: 560px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-page__input-wrap:focus-within {
  border-color: var(--bordeaux);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bordeaux) 12%, transparent);
}

.search-page__input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  color: var(--text);
  min-width: 0;
}

.search-page__input::placeholder { color: var(--text-muted); }

.search-page__submit {
  background: var(--bordeaux);
  color: #fff;
  border: none;
  padding: 0 0.85rem;
  height: 2.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}

.search-page__submit:hover { background: var(--bordeaux-light); }

/* ============================================================
   Floating back-to-top button
   ============================================================ */
.back-to-top-floating {
  position: fixed;
  bottom: 1.5rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: var(--bordeaux);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(123, 29, 50, 0.25);
  transition: background 0.2s, transform 0.2s, opacity 0.3s;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
}

.back-to-top-floating.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top-floating:hover,
.back-to-top-floating:focus {
  background: var(--bordeaux-light);
  transform: translateY(-2px);
  text-decoration: none;
  outline: none;
}

.back-to-top-floating:focus-visible {
  outline: 2px solid var(--bordeaux);
  outline-offset: 4px;
}

@media (min-width: 1024px) {
  .back-to-top-floating {
    right: calc((100vw - 1200px) / 2 - 3.5rem);
  }
}

@media (pointer: coarse) {
  .back-to-top-floating {
    padding: 0.75rem 1.1rem;
    font-size: 1rem;
  }
}

/* ============================================================
   Simple pages (Legal, Datenschutz, Contact Thanks, Search)
   ============================================================ */
.simple-page {
  max-width: var(--max-w-text);
  margin: 2rem auto;
  padding: 0 1.25rem;
}

/* ============================================================
   Author page
   ============================================================ */
.author-header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.author-header__info { flex: 1; }

.author-photo {
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.author-photo img {
  display: block;
  border-radius: var(--radius);
}

.author-bio { margin-top: 1rem; }

.author-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

.author-post-item {
  margin: 1rem 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.author-post-item:last-child { border-bottom: none; }

.author-post-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ============================================================
   Error pages (404, 500)
   ============================================================ */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  text-align: center;
  padding: 3rem 1.25rem;
}

.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 8rem);
  color: var(--bordeaux);
  line-height: 1;
  margin: 0 0 0.5rem;
}

.error-page__title {
  font-size: 1.5rem;
  margin: 0 0 1rem;
}

.error-page__body {
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2rem;
}

.error-page__search {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.error-page__search input {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.75rem;
  font-size: 1rem;
  outline: none;
}
.error-page__search input:focus { border-color: var(--bordeaux); }

/* ============================================================
   Dark mode — data-theme="dark" (manuell) ODER System-Präferenz (ohne Override)
   ============================================================ */

/* Manuelle Aktivierung per JS */
html[data-theme="dark"] {
  --text: #e8e4e0;
  --text-muted: #999;
  --border: #2e2e2e;
  --bg: #111;
  --bg-subtle: #1a1a1a;
  --bordeaux: #e8ac38;
  --bordeaux-light: #f0be55;
}
html[data-theme="dark"] .site-header__search button,
html[data-theme="dark"] .btn--primary { color: #231f20; }
html[data-theme="dark"] .site-header__name { color: var(--text); }
html[data-theme="dark"] .post-card { background: var(--bg); }
html[data-theme="dark"] .thumb--placeholder { background: var(--bg-subtle); }
html[data-theme="dark"] .callout--warn { background: #2a1f0a; border-left-color: var(--gold); }
html[data-theme="dark"] .callout--info { background: #0a1628; border-left-color: #3b82f6; }

/* System-Präferenz (nur wenn kein manueller Override gesetzt) */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]):not([data-theme="dark"]) {
    --text: #e8e4e0;
    --text-muted: #999;
    --border: #2e2e2e;
    --bg: #111;
    --bg-subtle: #1a1a1a;
    --bordeaux: #e8ac38;
    --bordeaux-light: #f0be55;
  }
  html:not([data-theme="light"]):not([data-theme="dark"]) .site-header__search button,
  html:not([data-theme="light"]):not([data-theme="dark"]) .btn--primary { color: #231f20; }
  html:not([data-theme="light"]):not([data-theme="dark"]) .site-header__name { color: var(--text); }
  html:not([data-theme="light"]):not([data-theme="dark"]) .post-card { background: var(--bg); }
  html:not([data-theme="light"]):not([data-theme="dark"]) .thumb--placeholder { background: var(--bg-subtle); }
  html:not([data-theme="light"]):not([data-theme="dark"]) .callout--warn { background: #2a1f0a; border-left-color: var(--gold); }
  html:not([data-theme="light"]):not([data-theme="dark"]) .callout--info { background: #0a1628; border-left-color: #3b82f6; }
}

/* Theme Toggle Button */
.theme-toggle {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 999px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  opacity: 0.4;
  flex-shrink: 0;
  transition: color 0.2s, opacity 0.2s;
}
.theme-toggle:hover { opacity: 1; }

html[data-theme="dark"] .theme-toggle { opacity: 0.6; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]):not([data-theme="dark"]) .theme-toggle { opacity: 0.6; }
}

/* Tooltip */
.theme-toggle::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--text);
  color: var(--bg);
  font-size: 0.75rem;
  white-space: nowrap;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.theme-toggle:hover::after { opacity: 1; }
/* Im Light Mode: Mond anzeigen (→ "zu Dark wechseln") */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
/* Im Dark Mode: Sonne anzeigen (→ "zu Light wechseln") */
html[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]):not([data-theme="dark"]) .theme-toggle .icon-sun  { display: block; }
  html:not([data-theme="light"]):not([data-theme="dark"]) .theme-toggle .icon-moon { display: none; }
}

/* ============================================================
   Zitiervorschlag
   ============================================================ */
.post-citation {
  margin: 2rem 0;
  padding: 1rem 1.25rem;
  background: var(--bg-subtle);
  border-left: 3px solid var(--bordeaux);
  border-radius: var(--radius);
}

.post-citation__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.post-citation__text {
  font-size: 0.875rem;
  color: var(--text);
  margin: 0 0 0.6rem;
  line-height: 1.6;
}

.post-citation__copy {
  font-size: 0.8rem;
  padding: 0.25rem 0.65rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text-muted);
  transition: border-color 0.15s, color 0.15s;
}

.post-citation__copy:hover { border-color: var(--bordeaux); color: var(--bordeaux); }

/* ============================================================
   Print
   ============================================================ */
.print-source { display: none; }

@media print {
  /* Ausblenden */
  .reading-progress,
  .site-header__hamburger,
  .site-header__nav,
  .site-header__search,
  .back-to-top-floating,
  .post-share,
  .post-nav,
  .related-posts,
  .post-sidebar,
  .post-series,
  .wagtailuserbar,
  .post-hero-image__credit-icon,
  .post-citation__copy,
  .breadcrumbs { display: none !important; }

  /* Basisschrift */
  body {
    font-size: 11pt;
    line-height: 1.6;
    color: #000;
    background: #fff;
  }

  /* Einspaltig */
  .post-layout { display: block; }
  .post-layout__main { max-width: 100%; }

  /* Header: nur Logo + Name */
  .site-header { border-bottom: 1pt solid #000; padding: 0.3cm 0; }
  .site-header__inner { min-height: auto; gap: 0.75rem; }

  /* Links schwarz */
  a { color: #000; text-decoration: none; }

  /* Hero-Bild-Attribution immer sichtbar */
  .post-hero-image { position: relative; }
  .post-hero-image__credit { position: static; display: block; margin-top: 0.2cm; }
  .post-hero-image__credit-tooltip {
    display: block !important;
    position: static;
    background: transparent;
    color: #555;
    font-size: 9pt;
    padding: 0;
    backdrop-filter: none;
  }
  .post-hero-image__credit-tooltip a { color: #555; }

  /* Seitenumbrüche */
  h2, h3 { page-break-after: avoid; }
  img, .callout, .post-citation { page-break-inside: avoid; }

  /* Zitiervorschlag im Druck */
  .post-citation { border-left: 1pt solid #000; background: none; }
  .post-citation__label { color: #555; }
  .post-citation__text { font-size: 9pt; }

  /* Quellenangabe am Ende */
  .print-source {
    display: block !important;
    margin-top: 1cm;
    padding-top: 0.4cm;
    border-top: 1pt solid #ccc;
    font-size: 9pt;
    color: #333;
  }
}
