/*
Theme Name: VENTIS Blog
Theme URI: https://blog.ventis-auktionen.ch
Author: VENTIS Auktionen GmbH
Author URI: https://www.ventis-auktionen.ch
Description: Eigenes Block-Theme im VENTIS-Corporate-Design. Inter-Schrift, Teal-Palette, dunkle Fusszeile, an die Haupt- und Shop-Seite angeglichen. Fuer den Philatelie-Blog (Postgeschichte, Recherche, Sammlerwissen).
Version: 1.7.3
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ventis-blog
*/

/* Die Gestaltung steuert primaer theme.json. Hier nur, was sich dort nicht ausdruecken laesst. */

:root {
  --ventis-shadow: 0 2px 10px rgba(0, 106, 125, 0.08);
  --ventis-shadow-lg: 0 8px 28px rgba(0, 106, 125, 0.14);
}

/* Kopfzeile: weiss mit feiner Linie unten, wie Haupt- und Shop-Seite */
.ventis-header {
  border-bottom: 1px solid var(--wp--preset--color--border);
}

/* Logo in der Kopfzeile: feste Hoehe wie Hauptseite, egal welches Bild */
.ventis-header .wp-block-site-logo img {
  height: 52px;
  width: auto;
  max-width: 100%;
}

/* Aktiver Menuepunkt: Teal mit Unterstrich, wie Hauptseite */
.ventis-header .wp-block-navigation .current-menu-item > a,
.ventis-header .wp-block-navigation .current-menu-item > a:hover {
  color: #10505b;
}
.ventis-header .wp-block-navigation .current-menu-item > a {
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 2px;
  text-decoration-color: #006a7d;
}

/* Beitrags-Karten: weicher Schatten, hebt beim Hover */
.ventis-card {
  box-shadow: var(--ventis-shadow);
  transition: box-shadow 200ms ease, transform 200ms ease;
  overflow: hidden;
}
.ventis-card:hover {
  box-shadow: var(--ventis-shadow-lg);
  transform: translateY(-3px);
}
.ventis-card img {
  transition: transform 400ms ease;
}
.ventis-card:hover img {
  transform: scale(1.03);
}

/* Eyebrow-Zeile (Kategorie ueber dem Titel), wie im Newsletter */
.ventis-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--wp--preset--color--primary);
}

/* Dunkler Seiten-Hero, Foto-Overlay moeglich */
.ventis-hero {
  position: relative;
  background-color: var(--wp--preset--color--contrast);
}
/* Hero-Inhalt zentriert begrenzen (statt Block-Layout, vermeidet Editor-Warnung) */
.ventis-hero > .wp-block-cover__inner-container {
  max-width: 760px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Fusszeile: 14px wie Haupt- und Shop-Seite, Titel 700 ohne Sperrung, keine Bullets */
.ventis-footer {
  font-size: 0.875rem;
  line-height: 1.7;
}
.ventis-footer h4 {
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  letter-spacing: normal !important;
  text-transform: uppercase;
  line-height: 1.4;
}
.ventis-footer p {
  font-size: 0.875rem;
  line-height: 1.7;
}
.ventis-footer .wp-block-list {
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: 1.9 !important;
}
.ventis-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.875rem;
}
.ventis-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Karten alle gleich hoch, Fusszeile (Autor · Datum) buendig unten */
.wp-block-post-template.is-layout-grid { align-items: stretch; }
.ventis-card { height: 100%; display: flex; flex-direction: column; position: relative; }

/* "NEU"-Badge oben rechts auf der Karte (nur Beitraege juenger als 14 Tage) */
.ventis-neu-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  margin: 0;
  background: var(--wp--preset--color--primary);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  padding: 5px 11px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(10, 31, 46, 0.18);
}
.ventis-neu-badge:empty { display: none; }
.ventis-card > .wp-block-group { flex: 1 1 auto; display: flex; flex-direction: column; }
.ventis-card > .wp-block-group > :last-child { margin-top: auto; }

/* Filter-Leiste: Kategorie- und Serien-Pills */
.ventis-filter-row,
.ventis-filter-series { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0; }
.ventis-filter-series { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--wp--preset--color--border); }
.ventis-filter-label { font-size: 0.8125rem; color: var(--wp--preset--color--muted); font-weight: 500; }
.ventis-pill {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid #cfdde0;
  color: var(--wp--preset--color--primary);
  background: #ffffff;
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease;
}
.ventis-pill:hover { border-color: var(--wp--preset--color--primary); text-decoration: none; }
.ventis-pill-active { background: var(--wp--preset--color--primary); color: #ffffff; border-color: var(--wp--preset--color--primary); }
.ventis-pill-active:hover { background: var(--wp--preset--color--primary-light); color: #ffffff; }
.ventis-pill-soft { background: var(--wp--preset--color--primary-subtle); border-color: transparent; color: var(--wp--preset--color--primary-dark); font-size: 0.8125rem; padding: 6px 14px; }
.ventis-pill-soft:hover { border-color: var(--wp--preset--color--primary); }

@media (prefers-reduced-motion: reduce) {
  .ventis-card, .ventis-card img { transition: none; }
  .ventis-card:hover { transform: none; }
  .ventis-card:hover img { transform: none; }
}

/* Lesezeit, Inhaltsverzeichnis und Teilen-Leiste (single.html) */
.ventis-readingtime {
  color: var(--wp--preset--color--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  margin: 0 0 1.5rem;
}
.ventis-toc {
  background: var(--wp--preset--color--primary-subtle);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 0 0 2rem;
}
.ventis-toc-title {
  font-weight: 700;
  color: var(--wp--preset--color--heading);
  font-size: 0.9375rem;
  margin: 0 0 0.5rem;
}
.ventis-toc ul { list-style: none; margin: 0; padding: 0; }
.ventis-toc li { margin: 0.2rem 0; }
.ventis-toc li.ventis-toc-sub { padding-left: 1rem; }
.ventis-toc a { color: var(--wp--preset--color--primary); text-decoration: none; }
.ventis-toc a:hover { text-decoration: underline; }

.ventis-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 2.5rem 0 0;
}
.ventis-share-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wp--preset--color--muted);
  margin-right: 0.25rem;
}
.ventis-share-link {
  font-size: 0.875rem;
  color: var(--wp--preset--color--primary);
  text-decoration: none;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  transition: background 150ms ease, border-color 150ms ease;
}
.ventis-share-link:hover {
  background: var(--wp--preset--color--primary-subtle);
  border-color: var(--wp--preset--color--primary-light);
  text-decoration: none;
}

/* Mobile-Feinschliff: Karten-Grids (Startseite + "Weitere Geschichten") sind
   per columnCount fix auf 3 Spalten. Auf kleinen Schirmen umbrechen lassen,
   damit nicht drei gequetschte Karten nebeneinander stehen. Desktop unberuehrt. */
@media (max-width: 900px) {
  .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 600px) {
  .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr !important; }
  .ventis-hero { padding-top: 3rem; padding-bottom: 3rem; }
}

/* Serien-Navigation (vorheriger / naechster Teil) */
.ventis-serienav { display: flex; gap: 1rem; margin: 2.5rem 0 0; }
.ventis-serienav > * { flex: 1 1 0; min-width: 0; }
.ventis-serienav a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease;
}
.ventis-serienav a:hover {
  border-color: var(--wp--preset--color--primary-light);
  background: var(--wp--preset--color--primary-subtle);
  text-decoration: none;
}
.ventis-serienav-next { text-align: right; }
.ventis-serienav-dir { font-size: 0.8125rem; font-weight: 600; color: var(--wp--preset--color--primary); }
.ventis-serienav-title { font-size: 0.9375rem; color: var(--wp--preset--color--heading); line-height: 1.3; }
@media (max-width: 600px) {
  .ventis-serienav { flex-direction: column; }
  .ventis-serienav-next { text-align: left; }
}
