/* ===================== SUBPAGE STYLES ===================== */

/* --- Container für Header, Content, Footer --- */
.subpage .site-header__inner,
.subpage main,
.subpage .site-footer__inner {
  max-width: 800px;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}

.subpage .site-header__inner { padding: 10px 0; }
.subpage main { padding: 16px 0 48px; }
.subpage .site-footer__inner { padding: 28px 0 40px; }

/* --- Logo + Claim --- */
.subpage .brand__logo {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1;
}
.subpage .brand__claim {
  font-size: 10px;
  letter-spacing: .08em;
}

 /* ========= Books ========= */
    .grid h1 {
      text-align: center;
      margin-bottom: 2rem;
    }
   .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 1rem;
  box-sizing: border-box;
}
    .book {
      background: white;
      border-radius: 1rem;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      overflow: hidden;
      text-align: center;
      padding-bottom: 1rem;
    }
    .book img {
      width: 100%;
      height: auto;
      display: block;
    }
    .book h2 {
      margin: 1rem 0 0.5rem;
    }
    .book p {
      color: #555;
      font-size: 0.9rem;
      margin: 0 1rem 1rem;
    }
    .book a {
      background: black;
      color: white;
      text-decoration: none;
      padding: 0.5rem 1rem;
      border-radius: 0.5rem;
      margin: 0.25rem;
      display: inline-block;
      transition: background 0.2s;
    }
    .book a:hover {
      background: #333;
    }

 /* ========= Mehr dazu ========= */
    .related { border-top: 1px solid var(--rule); margin-top: 32px; padding-top: 20px; }
    .related h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 12px; }
    .related__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
    .related__item a { color: var(--ink); text-decoration: none; font-weight: 600; display: inline-block; }
    .related__item a:hover { text-decoration: underline; }
    .related__item small { display: block; font-weight: 400; color: var(--muted); }

/* ===================== ARTICLE ===================== */
.subpage .article {
  max-width: 800px;
  margin: 28px auto 56px;
  display: grid;
  gap: 18px;
}
.subpage .article__kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.subpage .article__title {
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.15;
  margin: 0;
}
.subpage .article__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: baseline;
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}
.subpage .article__meta > * + *::before {
  content: "·";
  margin: 0 6px 0 2px;
  opacity: .6;
}
.subpage .article__lede {
  font-weight: 400;
  color: var(--muted);
  max-width: 68ch;
}
.subpage .article__body {
  max-width: 68ch;
  font-size: 1.05rem;
}
.subpage .article__body p { margin: 0 0 1em; }

/* ===================== LISTINGS ===================== */
.subpage .list {
  margin: 8px 0 0;
}
.subpage .list .item {
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}
.subpage .list .item:first-child {
  border-top: 0;
  padding-top: 6px;
}
.subpage .list a {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}
.subpage .list a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.subpage .list .teaser {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Pagination */
.subpage .pagination {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  margin-top: 1rem;
  font-size: 0.95rem;
}
.subpage .pagination a,
.subpage .pagination strong {
  text-decoration: none;
  color: var(--muted);
  padding: 0.2rem 0.4rem;
}
.subpage .pagination strong {
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
}
.subpage .pagination a:hover {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
}

/* ===================== TOPICS ===================== */
.subpage .topics {
  list-style: none;     /* Bullets weg */
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 880px) {
  .subpage .topics {
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
  }
}

.subpage .topics li:first-child { border-top: 0; }
.subpage .topics li {
  border-top: 1px solid var(--rule);
}

/* Kein Strich beim allerersten Topic */
.subpage .topics li:first-child {
  border-top: 0;
}

/* UND kein Strich bei allen ersten Elementen der zweiten Spalte */
@media (min-width: 880px) {
  .subpage .topics li:nth-child(2) {
    border-top: 0;
  }
}
.subpage .topics a {
  display: block;
  padding: 14px 0;
  text-decoration: none;
  color: var(--ink);
}
.subpage .topics a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.subpage .topics span {
  font-weight: 700;
  letter-spacing: .2px;
}
.subpage .topics small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

/* Optional: zwei Bilder nebeneinander */
.subpage .image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 800px;
  margin: 16px 0 32px;
}
.subpage .image-grid img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.04);
}
@media (max-width: 700px) {
  .subpage .image-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .subpage .image-grid img:nth-child(2) { display: none; }
}

/* ===================== RESPONSIVE TWEAKS ===================== */
@media (max-width: 820px) {
  .subpage main { padding: 18px 0 48px; }
  .subpage .article__title { font-size: 28px; }
}
.subpage .site-header {
  border-bottom: none;
  backdrop-filter: none;
}
.site-footer { border-top: none; }

/* Breite + Gutter für Subpages */
.subpage .site-header__inner,
.subpage main,
.subpage .site-footer__inner {
  max-width: 800px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Ab einer gewissen Breite Gutter auf 0 setzen → bündig */
@media (min-width: 880px) {
  .subpage .site-header__inner,
  .subpage main,
  .subpage .site-footer__inner {
    padding-left: 0;
    padding-right: 0;
  }
}

