:root {
  --bg: #11100e;
  --panel: #1b1814;
  --paper: #d8c7a4;
  --paper-dark: #a8946b;
  --text: #efe6d0;
  --muted: #b7a98a;
  --red: #6f1d1b;
  --red-light: #9a332e;
  --border: rgba(216, 199, 164, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(111, 29, 27, 0.25), transparent 35%),
    linear-gradient(180deg, #15120f 0%, var(--bg) 100%);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  border-bottom: 1px solid var(--border);
  background: rgba(17, 16, 14, 0.9);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border: 1px solid var(--paper-dark);
  display: grid;
  place-items: center;
  font-size: 28px;
  color: var(--paper);
}

.brand strong {
  display: block;
  font-size: 24px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.main-nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 15px;
}

.main-nav a:hover {
  color: var(--paper);
}

.hero {
  min-height: 680px;
  display: flex;
  align-items: center;
  padding: 80px 48px;
  background:
    linear-gradient(
      90deg,
      rgba(17, 16, 14, 0.96),
      rgba(17, 16, 14, 0.68)
    ),
    image-set(
      url("hero.webp") type("image/webp"),
      url("hero.jpg") type("image/jpeg")
    );

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content {
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  color: var(--paper-dark);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  margin-bottom: 18px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.95;
  margin-bottom: 28px;
}

h2 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
  margin-bottom: 20px;
}

h3 {
  font-size: 30px;
  margin-bottom: 14px;
}

.hero-text,
.intro-section p,
.archive-box p {
  font-size: 21px;
  line-height: 1.65;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: 1px solid var(--paper-dark);
  font-size: 15px;
}

.button.primary {
  background: var(--red);
  color: var(--text);
  border-color: var(--red-light);
}

.button.primary:hover {
  background: var(--red-light);
}

.button.ghost {
  color: var(--paper);
}

.button.ghost:hover {
  background: rgba(216, 199, 164, 0.08);
}

.intro-section,
.works-section,
.archive-section {
  padding: 90px 48px;
  max-width: 1280px;
  margin: 0 auto;
}

.intro-section {
  text-align: center;
  max-width: 980px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading a {
  color: var(--paper-dark);
  border-bottom: 1px solid var(--paper-dark);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.work-card {
  min-height: 320px;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(216, 199, 164, 0.06), rgba(216, 199, 164, 0.02));
  border: 1px solid var(--border);
  position: relative;
}

.work-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(216, 199, 164, 0.08);
  pointer-events: none;
}

.work-card span {
  display: block;
  color: var(--paper-dark);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 70px;
}

.work-card p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 17px;
}

.archive-box {
  padding: 70px;
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(111, 29, 27, 0.22), rgba(216, 199, 164, 0.04)),
    var(--panel);
}

.site-footer {
  padding: 34px 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
    padding: 22px;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 16px;
  }

  .hero {
    min-height: 580px;
    padding: 60px 24px;
  }

  .intro-section,
  .works-section,
  .archive-section {
    padding: 64px 24px;
  }

  .section-heading {
    display: block;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .archive-box {
    padding: 36px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

.work-status {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  padding: 7px 11px;
  border: 1px solid var(--border);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-published {
  color: var(--text);
  background: rgba(111, 29, 27, 0.75);
}

.status-progress {
  color: var(--paper);
  background: rgba(216, 199, 164, 0.10);
}

.status-planned {
  color: var(--muted);
  background: rgba(17, 16, 14, 0.72);
}
/* ============================================================================
   Erweiterungen für Unterseiten, Werkdetailseiten, Archiv und Autoren
   ============================================================================ */

.brand[aria-label] {
  text-decoration: none;
}

.main-nav a[aria-current="page"] {
  color: var(--paper);
}

.text-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--paper);
  border-bottom: 1px solid var(--paper-dark);
  position: relative;
  z-index: 3;
}

.text-link:hover {
  color: var(--text);
  border-color: var(--text);
}

.page-hero,
.book-hero {
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 90px 48px;
  background:
    linear-gradient(90deg, rgba(17, 16, 14, 0.98), rgba(17, 16, 14, 0.74)),
    radial-gradient(circle at top right, rgba(111, 29, 27, 0.34), transparent 42%);
  border-bottom: 1px solid var(--border);
}

.compact-hero {
  min-height: 430px;
}

.page-hero-content,
.book-hero-content {
  max-width: 920px;
}

.page-section,
.detail-section,
.theme-section,
.feature-section {
  padding: 90px 48px;
  max-width: 1280px;
  margin: 0 auto;
}

.feature-grid,
.detail-layout,
.theme-grid {
  display: grid;
  gap: 28px;
}

.feature-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.detail-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
}

.feature-card,
.detail-main,
.detail-aside,
.theme-grid article,
.archive-entry {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(216, 199, 164, 0.055), rgba(216, 199, 164, 0.018));
}

.feature-card,
.detail-main,
.detail-aside,
.theme-grid article {
  padding: 38px;
}

.feature-card p,
.detail-main p,
.detail-aside p,
.theme-grid p,
.archive-entry p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 18px;
}

.muted-card {
  background:
    linear-gradient(135deg, rgba(111, 29, 27, 0.20), rgba(216, 199, 164, 0.035)),
    var(--panel);
}

.detail-aside h2 {
  font-size: 30px;
}

.detail-aside dl {
  margin: 0;
}

.detail-aside div {
  padding: 18px 0;
  border-top: 1px solid var(--border);
}

.detail-aside dt {
  color: var(--paper-dark);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  margin-bottom: 8px;
}

.detail-aside dd {
  margin: 0;
  color: var(--text);
  font-size: 18px;
}

.theme-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 32px;
}

.theme-grid h3 {
  font-size: 26px;
}

.large-card {
  min-height: 380px;
}

.archive-list {
  display: grid;
  gap: 24px;
}

.archive-entry {
  padding: 34px;
}

.archive-entry span {
  display: block;
  color: var(--paper-dark);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.archive-entry h2 {
  font-size: clamp(28px, 3vw, 42px);
}

@media (max-width: 900px) {
  .page-hero,
  .book-hero {
    min-height: 420px;
    padding: 64px 24px;
  }

  .page-section,
  .detail-section,
  .theme-section,
  .feature-section {
    padding: 64px 24px;
  }

  .feature-grid,
  .detail-layout,
  .theme-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .detail-main,
  .detail-aside,
  .theme-grid article,
  .archive-entry {
    padding: 28px;
  }
}

/* ============================================================================
   Finale Schauerwerk-Erweiterungen: Feed v2, Mobile-Navigation, SEO-URLs,
   Werklisten, Autorenseiten, Legal-Seiten, QR-Code
   ============================================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: none;
  margin-left: auto;
  padding: 10px 14px;
  border: 1px solid var(--paper-dark);
  color: var(--paper);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
}

.hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-subtitle,
.work-subtitle {
  color: var(--paper);
  font-size: 22px;
  line-height: 1.45;
  margin-bottom: 20px;
}

.work-card h3 a,
.work-list-card h2 a {
  color: var(--text);
}

.work-card--cover {
  display: flex;
  flex-direction: column;
}

.work-card__media {
  position: relative;
  z-index: 3;
  display: block;
  margin: 0 0 22px;
  max-width: 190px;
}

.work-card__media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}

.work-card--cover span {
  margin-bottom: 16px;
}

.work-list {
  display: grid;
  gap: 24px;
}

.work-list-card {
  display: grid;
  grid-template-columns: 80px 170px minmax(0, 1fr);
  gap: 26px;
  padding: 30px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(216, 199, 164, 0.055), rgba(216, 199, 164, 0.018));
  position: relative;
}

.work-list-card__number {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  color: var(--paper);
  font-size: 24px;
}

.work-list-card__cover img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}

.work-list-card .work-status {
  position: static;
  display: inline-flex;
  margin-bottom: 16px;
}

.work-meta,
.work-small {
  color: var(--paper-dark);
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: 13px;
}

.work-small {
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
  color: var(--muted);
}

.pagination a {
  padding: 10px 14px;
  border: 1px solid var(--paper-dark);
  color: var(--paper);
}

.detail-cover,
.detail-cover-mobile {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  box-shadow: 0 22px 55px rgba(0,0,0,.42);
  margin-bottom: 28px;
}

.detail-cover-mobile {
  display: none;
  max-width: 280px;
}

.book-blurb p,
.book-blurb li,
.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.75;
}

.book-blurb strong,
.legal-content strong {
  color: var(--text);
}

.book-blurb ul,
.book-blurb ol,
.legal-content ul,
.legal-content ol {
  color: var(--muted);
  padding-left: 24px;
}

.text-underline {
  text-decoration: underline;
}

.order-qr {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.order-qr h3 {
  font-size: 24px;
}

.order-qr p {
  font-size: 15px;
}

.order-qr__link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
}

.order-qr__svg {
  display: block;
  max-width: 190px;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
}

.author-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.author-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  box-shadow: 0 22px 55px rgba(0,0,0,.42);
}

.detail-main--wide {
  max-width: 980px;
  margin: 0 auto;
}

.theme-card-link {
  display: block;
  color: inherit;
}

.theme-card-link:hover {
  text-decoration: none;
}

.theme-grid article.is-current {
  border-color: var(--paper-dark);
  background: linear-gradient(135deg, rgba(111, 29, 27, 0.30), rgba(216, 199, 164, 0.05));
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.footer-nav a {
  color: var(--muted);
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  color: var(--paper);
}

@media (max-width: 900px) {
  .site-header {
    position: sticky;
    flex-direction: row;
    align-items: center;
  }

  .nav-toggle-label {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(82vw, 340px);
    height: 100vh;
    padding: 92px 28px 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    background: rgba(17, 16, 14, .98);
    border-left: 1px solid var(--border);
    transform: translateX(102%);
    transition: transform .24s ease;
    z-index: 40;
  }

  .nav-toggle:checked ~ .main-nav {
    transform: translateX(0);
  }

  .nav-toggle:checked + .nav-toggle-label {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 60;
    background: var(--bg);
  }

  .brand {
    max-width: calc(100% - 94px);
  }

  .brand span {
    display: none;
  }

  .work-list-card {
    grid-template-columns: 1fr;
  }

  .work-list-card__cover {
    max-width: 180px;
  }

  .detail-cover {
    display: none;
  }

  .detail-cover-mobile {
    display: block;
  }

  .author-layout {
    grid-template-columns: 1fr;
  }

  .author-image {
    max-width: 320px;
  }
}


/* ============================================================================
   Layout-Korrekturen 2026-05-31
   - Header- und Hero-Inhalte auf dieselbe Maximalbreite wie Seitensektionen bringen
   - Werk-Hero wie Startseiten-Hero behandeln, ohne Bildwiederholung
   - Cover in Karten tiefer setzen, damit Status-Badge nicht überdeckt
   - Link zum vollständigen Aktiokrat-Autorenprofil gestalten
   ============================================================================ */

:root {
  --site-wrap: 1280px;
  --site-side: 48px;
}

.site-header {
  padding-left: max(24px, calc((100vw - var(--site-wrap)) / 2 + var(--site-side)));
  padding-right: max(24px, calc((100vw - var(--site-wrap)) / 2 + var(--site-side)));
}

.hero,
.book-hero,
.page-hero {
  padding-left: 0;
  padding-right: 0;
}

.hero-content,
.book-hero-content,
.page-hero-content {
  width: min(calc(100% - (var(--site-side) * 2)), var(--site-wrap));
  max-width: var(--site-wrap);
  margin-left: auto;
  margin-right: auto;
}

.hero-content > *,
.book-hero-content > *,
.page-hero-content > * {
  max-width: 760px;
}

.book-hero {
  min-height: 680px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.work-card--cover .work-card__media {
  margin-top: 44px;
}

.author-profile-link {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.author-profile-link p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 900px) {
  :root {
    --site-side: 24px;
  }

  .site-header {
    padding-left: 22px;
    padding-right: 22px;
  }

  .book-hero {
    min-height: 580px;
  }

  .work-card--cover .work-card__media {
    margin-top: 38px;
  }
}


/* ============================================================================
   Hotfix 2026-05-31
   - Hero-Inhalte bündig zur normalen Seitenkante ausrichten
   - Aktiokrat-Autorenlink wird in helpers.php auf /de/author/{slug} korrigiert
   ============================================================================ */

.hero-content,
.book-hero-content,
.page-hero-content {
  width: 100%;
  max-width: var(--site-wrap);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--site-side);
  padding-right: var(--site-side);
  box-sizing: border-box;
}

.hero-content > *,
.book-hero-content > *,
.page-hero-content > * {
  max-width: 760px;
}

@media (max-width: 900px) {
  .hero-content,
  .book-hero-content,
  .page-hero-content {
    padding-left: 24px;
    padding-right: 24px;
  }
}
