/* ==========================================================================
   VENTIVA — 09 Inhaltsseiten
   Pflichtseiten, Beiträge, Blog-Index, 404.

   Eine Lesespalte, sonst nichts. Rechtstexte müssen lesbar sein, nicht
   inszeniert — deshalb hier keine Karten, keine Raster, kein Amber ausser
   auf Hover eines Links.
   ========================================================================== */

.v-page { padding-block: clamp(3rem, 2rem + 4vw, 6rem) 0; }

.v-page__head {
  max-width: 24ch;
  margin-bottom: clamp(2rem, 1.2rem + 2.4vw, 3.4rem);
}
.v-page__title { font-size: var(--fs-h2); }

.v-page__figure {
  margin: 0 0 clamp(2rem, 1.5rem + 2vw, 3rem);
  border-radius: var(--v-radius-lg);
  overflow: hidden;
}

/* --- Fliesstext ---------------------------------------------------------- */
.v-prose {
  max-width: 68ch;          /* darüber verliert man beim Zeilenwechsel den Anschluss */
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--v-ink);
}

.v-prose > * + * { margin-top: 1.15em; }

.v-prose h2,
.v-prose h3,
.v-prose h4 {
  font-family: var(--v-display);
  font-weight: 600;
  font-stretch: 106%;
  letter-spacing: -.018em;
  line-height: 1.22;
  margin-top: 2.2em;
  margin-bottom: .6em;
  text-wrap: balance;
}
.v-prose h2 { font-size: var(--fs-h3); }
.v-prose h3 { font-size: var(--fs-lg); }
.v-prose h4 { font-size: var(--fs-base); text-transform: none; }

.v-prose p { margin-block: 0; }

.v-prose a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  transition: color var(--v-fast) var(--v-ease);
}
/* Amber erst auf Hover: Ein Rechtstext mit 40 amberfarbenen Links wäre
   unlesbar, ein einzelner unter dem Cursor ist eindeutig. */
.v-prose a:hover { color: var(--v-heat-deep); }

.v-prose ul,
.v-prose ol { padding-left: 1.3em; margin-block: 0; }
.v-prose li + li { margin-top: .45em; }
.v-prose ul { list-style: none; padding-left: 1.4em; }
.v-prose ul > li { position: relative; }
.v-prose ul > li::before {
  content: "";
  position: absolute;
  left: -1.15em;
  top: .72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--v-cool);
}

.v-prose strong { font-weight: 600; }

.v-prose blockquote {
  margin-inline: 0;
  padding-left: 1.3rem;
  border-left: 2px solid var(--v-cool);
  color: var(--v-ink-60);
}

.v-prose hr {
  border: 0;
  border-top: 1px solid var(--v-line);
  margin-block: 2.4em;
}

.v-prose code,
.v-prose kbd {
  font-family: var(--v-mono);
  font-size: .88em;
  padding: .12em .38em;
  border-radius: 5px;
  background: rgba(18, 58, 52, .07);
}

.v-prose img { border-radius: var(--v-radius); }

/* Tabellen kommen in AGB und Versandkosten regelmässig vor. */
.v-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.v-prose th,
.v-prose td {
  text-align: left;
  padding: .7rem .8rem;
  border-bottom: 1px solid var(--v-line);
  vertical-align: top;
}
.v-prose th {
  font-family: var(--v-mono);
  font-size: var(--fs-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--v-ink-60);
  font-weight: 400;
}

.v-prose__pages {
  margin-top: 2.4rem;
  font-family: var(--v-mono);
  font-size: var(--fs-mono);
}

/* --- Rechtstexte --------------------------------------------------------- */
/* Template: page-templates/page-legal.php */

.v-legal__head { max-width: 30ch; }

.v-legal__meta {
  margin: 1.2rem 0 0;
  font-family: var(--v-mono);
  font-size: var(--fs-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--v-ink-60);
}

/* Rechtstexte sind Nachschlagewerke: Überschriften dürfen ruhig kräftiger
   vom Fliesstext abgesetzt sein als in einem Artikel. */
.v-legal .v-prose h2 {
  padding-top: 1.6rem;
  border-top: 1px solid var(--v-line);
}
.v-legal .v-prose h2:first-child { padding-top: 0; border-top: 0; }

/* Hinweis nur für angemeldete Redakteure. */
.v-legal__hint {
  padding: 1rem 1.2rem;
  border-radius: var(--v-radius);
  background: rgba(228, 160, 74, .14);
  box-shadow: inset 0 0 0 1px rgba(201, 130, 44, .4);
  font-size: var(--fs-sm);
}

/* Gerüst-Zeilen klar als Platzhalter markieren, damit sie niemand für den
   Rechtstext hält. */
.v-legal__placeholder {
  color: var(--v-ink-60);
  font-style: italic;
  border-left: 2px solid var(--v-line);
  padding-left: 1rem;
}

.v-legal__source {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--v-line);
  font-family: var(--v-mono);
  font-size: var(--fs-mono);
  letter-spacing: .06em;
  color: var(--v-ink-60);
}

/* --- 404 ----------------------------------------------------------------- */
.v-404 { padding-bottom: clamp(3rem, 2rem + 4vw, 6rem); }
.v-404__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2.4rem;
}

/* --- Beitragsliste ------------------------------------------------------- */
.v-postlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.5rem, 1rem + 2vw, 2.6rem);
}
.v-postlist__item {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: clamp(1.2rem, .8rem + 1.6vw, 2.2rem);
  align-items: start;
  padding-bottom: clamp(1.5rem, 1rem + 2vw, 2.6rem);
  border-bottom: 1px solid var(--v-line);
}
@media (max-width: 640px) {
  .v-postlist__item { grid-template-columns: minmax(0, 1fr); }
}

.v-postlist__media {
  display: block;
  border-radius: var(--v-radius);
  overflow: hidden;
}
.v-postlist__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.v-postlist__body h2 a { text-decoration: none; }
.v-postlist__body h2 a:hover { text-decoration: underline; }
.v-postlist__excerpt {
  margin: .7rem 0 0;
  color: var(--v-ink-60);
  max-width: 60ch;
}

/* --- Blätterung ---------------------------------------------------------- */
.v-pagination {
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  font-family: var(--v-mono);
  font-size: var(--fs-mono);
  letter-spacing: .08em;
}
.v-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.v-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding-inline: .7rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--v-ink-60);
  box-shadow: inset 0 0 0 1px var(--v-line);
  transition: color var(--v-fast) var(--v-ease),
              background var(--v-fast) var(--v-ease);
}
.v-pagination .page-numbers:hover { color: var(--v-ink); background: rgba(18, 58, 52, .06); }
.v-pagination .page-numbers.current {
  color: var(--v-ink);
  background: var(--v-paper);
  box-shadow: inset 0 0 0 1px var(--v-ink-40);
}
