/*
 * Theme Name: TV 1862 Helmbrechts
 * Description: Theme für den Turnverein Helmbrechts
 *     Version: 1.0
 *   Theme URI: https://www.tv1862helmbrechts.de/
 *      Author: Stephan Schuster
 *  Author URI: https://www.stephan-schuster.com/
 *    Template: bootscore
 */

/* Caret-rechts-Symbol für Menüpunkte mit Sub-Menü (alle Bildschirmgrößen) */
.dropdown-submenu > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dropdown-submenu > a::after {
  flex-shrink: 0;
  width: 0;
  height: 0;
  margin-left: 0.5rem;
  content: "";
  border-top: 0.3em solid transparent;
  border-bottom: 0.3em solid transparent;
  border-left: 0.3em solid;
  border-right: 0;
}


/* Dropdown-Menü per Hover öffnen (nur Desktop, ab lg-Breakpoint) */
@media (min-width: 992px) {
  /* Ebene 2: Dropdown unter Hauptmenüpunkten */
  .navbar .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }

  /* Ebene 3: Flyout-Submenu nach rechts */
  .dropdown-submenu {
    position: relative;
  }

  /* Übergeordnetes Dropdown darf das Flyout nicht abschneiden */
  .navbar .dropdown-menu {
    overflow: visible;
  }

  /* Sub-Menü rechts positionieren; Bootstrap-display:none via !important überschreiben */
  .dropdown-submenu > .dropdown-menu {
    position: absolute !important;
    top: 0 !important;
    left: 100% !important;
    margin: 0 !important;
    z-index: 1001 !important;
  }

  .dropdown-submenu:hover > .dropdown-menu {
    display: block !important;
  }
}

/* Logo: feste, GLEICHE Breite/Höhe (nicht nur height, sonst quetscht der Flex-Header
   das Bild zur Ellipse statt zum Kreis) + weiße Fläche dahinter, da das Logo selbst
   transparent ist und der Header je nach Seite rot oder dunkel ist. */
#masthead .navbar-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  border-radius: 50%;
  padding: 3px;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  #masthead .navbar-brand img {
    width: 80px;
    height: 80px;
  }
}


/* ============================================================
   TVH Redesign — Header, Footer, Startseite
   ============================================================ */

:root {
  --tvh-red: #C20D0D;
  --tvh-red-dark: #8f0a0a;
  --tvh-dark: #1C1A19;
  --tvh-bg: #FAF8F6;
  --tvh-border: #e2ded8;
  --tvh-border-strong: #d8d3cb;
  --tvh-muted: #5a5650;
  --tvh-sponsor-bg: #f0eee9;
  --tvh-band-bg: #efece7;
  --tvh-text: #3d3935;
  --tvh-text-tertiary: #8c8579;
  --tvh-placeholder: #a8a29a;
  --tvh-footer-text: #a09b95;
}

/* Body-Hintergrund = dieselbe Farbe wie .tvh-page-head/.tvh-list-layout/.tvh-detail-layout.
   Die sind jetzt selbst per .container breitenbegrenzt (siehe Unterseiten-Templates) — ohne
   das hier würden links/rechts davon weiße Ränder statt der Seitenfarbe durchscheinen. */
body {
  background: var(--tvh-bg);
}

/* Basis-Linkstil aus dem Design (fehlte bisher) — gilt sitewide, spezifischere Regeln
   (Buttons, Nav etc.) haben ohnehin Vorrang. */
a {
  color: var(--tvh-red);
  text-decoration: none;
}

a:hover {
  color: var(--tvh-red-dark);
}

/* --- Header ---
   Unterseiten: roter Header (Default). Startseite: dunkler Header (body.home). */
/* Wie .tvh-hero: Verlauf + diagonale Textur als reine Hintergrund-Layer (kein
   overflow:hidden nötig, das würde sonst die Dropdown-Flyouts abschneiden). */
#masthead {
  background:
    repeating-linear-gradient(-35deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 22px),
    linear-gradient(120deg, var(--tvh-red) 0%, var(--tvh-red-dark) 100%) !important;
}

body.home #masthead {
  background: var(--tvh-dark) !important;
}

#masthead .navbar-brand,
#masthead .offcanvas-title {
  color: #fff;
}

#masthead .nav-link {
  color: #e8e5e1;
  font: 600 .8125rem/1 'Inter', sans-serif;
  letter-spacing: .02em;
  text-transform: uppercase;
}

#masthead .nav-link:hover,
#masthead .nav-link.active {
  color: #fff;
}

#masthead .nav-link.active {
  box-shadow: inset 0 -2px 0 #fff;
}

#masthead .nav-toggler {
  color: #fff;
  border-color: rgba(255, 255, 255, .4);
}

#masthead .offcanvas {
  background: var(--tvh-red);
  color: #fff;
}

body.home #masthead .offcanvas {
  background: var(--tvh-dark);
}

/* Dropdown-Menüs (alle Ebenen): standardmäßig rot (Unterseiten-Header), auf der
   Startseite (dunkler Header) dunkel — analog zu #masthead/.tvh-cta-btn. */
#masthead .dropdown-menu {
  background: var(--tvh-red);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 2px;
  padding: .375rem 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

#masthead .dropdown-item {
  color: #ffe1e1;
  font: 600 .8125rem/1.4 'Inter', sans-serif;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: .55rem 1.25rem;
  background: transparent;
}

#masthead .dropdown-item:hover,
#masthead .dropdown-item:focus,
#masthead .dropdown-item:active,
#masthead .dropdown-item.active {
  background: var(--tvh-red-dark);
  color: #fff;
}

body.home #masthead .dropdown-menu {
  background: #262320;
  border-color: rgba(255, 255, 255, .08);
}

body.home #masthead .dropdown-item {
  color: #e8e5e1;
}

body.home #masthead .dropdown-item:hover,
body.home #masthead .dropdown-item:focus,
body.home #masthead .dropdown-item:active,
body.home #masthead .dropdown-item.active {
  background: var(--tvh-red);
  color: #fff;
}

/* Unterseiten (roter Header): CTA invertiert (weiß/rot) */
.tvh-cta-btn {
  background: #fff;
  color: var(--tvh-red) !important;
  font: 700 .75rem/1 'Inter', sans-serif;
  padding: .6rem 1.1rem;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: .02em;
  white-space: nowrap;
}

.tvh-cta-btn:hover {
  background: #f2f2f2;
  color: var(--tvh-red) !important;
}

/* Startseite (dunkler Header): CTA rot/weiß */
body.home .tvh-cta-btn {
  background: var(--tvh-red);
  color: #fff !important;
}

body.home .tvh-cta-btn:hover {
  background: var(--tvh-red-dark);
  color: #fff !important;
}

/* --- Footer --- */
#footer,
.bootscore-footer-top,
.bootscore-footer-columns,
.bootscore-footer-info {
  background: var(--tvh-dark) !important;
  color: #a09b95;
  border-color: rgba(255, 255, 255, .08) !important;
}

#footer a,
.bootscore-copyright {
  color: #a09b95;
}

#footer a:hover {
  color: #fff;
}

/* "Nach oben"-Button: Bootstrap-Standardblau (.btn-primary) auf Vereinsrot umgestellt,
   über die Bootstrap-5.3-Button-CSS-Variablen statt Farb-Overrides mit !important. */
.top-button {
  --bs-btn-bg: var(--tvh-red);
  --bs-btn-border-color: var(--tvh-red);
  --bs-btn-hover-bg: var(--tvh-red-dark);
  --bs-btn-hover-border-color: var(--tvh-red-dark);
  --bs-btn-active-bg: var(--tvh-red-dark);
  --bs-btn-active-border-color: var(--tvh-red-dark);
}

/* --- Hero --- */
.tvh-hero {
  position: relative;
  min-height: 420px;
  background: linear-gradient(120deg, var(--tvh-red) 0%, var(--tvh-red-dark) 55%, var(--tvh-dark) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  color: #fff;
}

.tvh-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(-35deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 22px);
}

.tvh-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -40px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
}

.tvh-hero-inner {
  position: relative;
  z-index: 1;
  padding: 2rem 2.5rem;
  max-width: 640px;
}

.tvh-hero-eyebrow {
  font: 700 .8125rem/1 'Inter', sans-serif;
  color: #ffd7d7;
  letter-spacing: .12em;
  margin-bottom: .875rem;
}

.tvh-hero-title {
  font: 800 clamp(2.5rem, 5vw, 4rem)/1.02 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: .01em;
  margin: 0;
}

.tvh-hero-lead {
  font: 500 1rem/1.5 'Inter', sans-serif;
  color: rgba(255, 255, 255, .85);
  margin-top: 1.125rem;
  max-width: 460px;
}

.tvh-hero-actions {
  display: flex;
  gap: .875rem;
  margin-top: 1.625rem;
  flex-wrap: wrap;
}

.tvh-btn-light,
.tvh-btn-outline {
  display: inline-block;
  padding: .875rem 1.625rem;
  font: 700 .875rem/1 'Inter', sans-serif;
  border-radius: 2px;
  text-decoration: none;
}

.tvh-btn-light {
  background: #fff;
  color: var(--tvh-red) !important;
}

.tvh-btn-light:hover {
  background: #f2f2f2;
}

.tvh-btn-outline {
  border: 2px solid rgba(255, 255, 255, .5);
  color: #fff !important;
}

.tvh-btn-outline:hover {
  border-color: #fff;
}

.tvh-hero-image {
  position: absolute;
  right: 60px;
  bottom: 0;
  width: 380px;
  height: 380px;
  object-fit: cover;
  object-position: center 8%;
  transform: scale(1.08);
  clip-path: polygon(15% 0, 100% 0, 85% 100%, 0% 100%);
  z-index: 0;
  display: none;
}

@media (min-width: 992px) {
  .tvh-hero-image {
    display: block;
  }
}

/* --- News --- */
.tvh-news {
  background: var(--tvh-bg);
}

.tvh-news-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.tvh-news-head h2 {
  font: 800 1.625rem 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: .01em;
  margin: 0;
}

.tvh-news-all {
  font: 700 .75rem 'Inter', sans-serif;
  color: var(--tvh-red);
  white-space: nowrap;
  text-decoration: none;
}

.tvh-news-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 991px) {
  .tvh-news-grid {
    grid-template-columns: 1fr;
  }
}

.tvh-news-card {
  border: 1px solid var(--tvh-border);
  background: #fff;
  display: flex;
  flex-direction: column;
}

.tvh-news-card-img {
  display: block;
  height: 320px;
  background-color: var(--tvh-border);
  background-size: cover;
  background-position: center;
}

.tvh-news-card-body {
  padding: 1rem;
}

.tvh-news-card--lead .tvh-news-card-body,
.tvh-news-card--no-image .tvh-news-card-body {
  padding: 1.125rem;
}

.tvh-news-card--no-image {
  border-left: 4px solid var(--tvh-red);
}

.tvh-news-date {
  font: 600 .6875rem 'Inter', sans-serif;
  color: var(--tvh-red);
  margin-bottom: .5rem;
}

.tvh-news-card-body h3 {
  font: 700 .9375rem/1.3 'Inter', sans-serif;
  margin: 0 0 .375rem;
}

.tvh-news-card--lead .tvh-news-card-body h3,
.tvh-news-card--no-image .tvh-news-card-body h3 {
  font-size: 1.0625rem;
}

.tvh-news-card-body h3 a {
  color: var(--tvh-dark);
  text-decoration: none;
}

.tvh-news-card-body p {
  font: 400 .8125rem/1.5 'Inter', sans-serif;
  color: var(--tvh-muted);
  margin: 0 0 .875rem;
}

.tvh-news-card-body .tvh-more-link {
  display: inline-block;
}

.tvh-news-card-body .tvh-more-link {
  display: inline-block;
}

/* --- Sponsors --- */
.tvh-sponsors {
  padding-block: 1.875rem;
  background: var(--tvh-sponsor-bg);
}

.tvh-sponsors-inner {
  display: flex;
  align-items: center;
  gap: 1.875rem;
  flex-wrap: wrap;
}

.tvh-sponsors-label {
  font: 700 .6875rem 'Inter', sans-serif;
  color: #8c8579;
  letter-spacing: .05em;
  white-space: nowrap;
  text-transform: uppercase;
}

.tvh-sponsors img {
  height: 44px;
  object-fit: contain;
}


/* ============================================================
   TVH Redesign — Unterseiten (News-Übersicht, News-Detail, Galerie)
   ============================================================ */

/* --- Breadcrumb --- */
.tvh-breadcrumb {
  padding-block: .875rem;
  background: var(--tvh-band-bg);
  border-bottom: 1px solid var(--tvh-border);
  font: 400 .75rem/1.4 'Inter', sans-serif;
  color: var(--tvh-text-tertiary);
}

.tvh-breadcrumb a {
  color: var(--tvh-text-tertiary);
}

.tvh-breadcrumb a:hover {
  color: var(--tvh-red);
}

.tvh-breadcrumb-current {
  color: var(--tvh-red);
  font-weight: 600;
}

/* --- Seitenkopf (Titelbalken) --- */
.tvh-page-head {
  padding-block: 2.25rem .75rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: var(--tvh-bg);
}

.tvh-page-head-title {
  font: 800 2.5rem/1 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--tvh-dark);
}

.tvh-page-head-sub {
  font: 400 .875rem/1.5 'Inter', sans-serif;
  color: var(--tvh-muted);
  margin-top: .5rem;
}

/* --- Zweispaltiges Layout (Liste/Artikel + Sidebar) --- */
.tvh-list-layout,
.tvh-detail-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-block: 2.25rem 2.75rem;
  align-items: flex-start;
  background: var(--tvh-bg);
}

.tvh-article-list {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
}

.tvh-detail-layout .tvh-article {
  flex: 1 1 460px;
  min-width: 0;
}

/* --- Beitragskarten (News-Übersicht) --- */
.tvh-news-list-card {
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--tvh-border);
}

.tvh-news-list-card--no-image {
  border-left: 4px solid var(--tvh-red);
  padding: 1.375rem 1.5rem;
}

.tvh-news-list-card-img {
  display: block;
  flex: 1 1 200px;
  max-width: 260px;
  min-width: 160px;
  min-height: 190px;
  align-self: stretch;
  background-size: cover;
  background-position: center;
}

.tvh-news-list-card-body {
  flex: 1 1 300px;
  min-width: 0;
  padding: 1.375rem 1.5rem;
}

.tvh-news-list-card--no-image .tvh-news-list-card-body {
  padding: 0;
}

.tvh-meta {
  font: 600 .6875rem/1 'Inter', sans-serif;
  color: var(--tvh-red);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.tvh-news-list-card-body h3 {
  margin: 0 0 .625rem;
  font: 700 1.3125rem/1.25 'Inter', sans-serif;
}

.tvh-news-list-card-body h3 a {
  color: var(--tvh-dark);
  text-decoration: none;
}

.tvh-news-list-card-body p {
  margin: 0 0 .875rem;
  font: 400 .875rem/1.6 'Inter', sans-serif;
  color: var(--tvh-muted);
}

.tvh-more-link {
  font: 700 .8125rem/1 'Inter', sans-serif;
  color: var(--tvh-red);
}

/* --- Sidebar --- */
.tvh-sidebar {
  flex: 1 1 260px;
  min-width: 0;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.tvh-search {
  display: flex;
  border: 1px solid var(--tvh-border-strong);
  background: #fff;
}

.tvh-search input {
  flex: 1;
  border: 0;
  padding: .75rem .875rem;
  font: 400 .8125rem/1 'Inter', sans-serif;
  color: var(--tvh-dark);
  background: transparent;
}

.tvh-search input::placeholder {
  color: var(--tvh-placeholder);
}

.tvh-search input:focus {
  outline: none;
}

.tvh-search button {
  border: 0;
  padding: .75rem 1.125rem;
  background: var(--tvh-dark);
  color: #fff;
  font: 700 .75rem/1 'Inter', sans-serif;
  cursor: pointer;
}

.tvh-sidebar-heading {
  font: 800 1.125rem/1 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: .01em;
  padding-bottom: .625rem;
  border-bottom: 2px solid var(--tvh-red);
  margin-bottom: .25rem;
  color: var(--tvh-dark);
}

.tvh-sidebar-list {
  display: flex;
  flex-direction: column;
}

.tvh-sidebar-item {
  display: block;
  padding: .875rem 0;
  border-bottom: 1px solid var(--tvh-border);
}

.tvh-sidebar-item:last-child {
  border-bottom: 0;
}

.tvh-sidebar-item-date {
  font: 500 .65625rem/1 'Inter', sans-serif;
  color: var(--tvh-text-tertiary);
  margin-bottom: .25rem;
}

.tvh-sidebar-item-title {
  font: 600 .875rem/1.4 'Inter', sans-serif;
  color: var(--tvh-dark);
}

.tvh-sidebar-cta {
  background: var(--tvh-red);
  color: #fff;
  padding: 1.375rem;
}

.tvh-sidebar-cta-title {
  font: 800 1.25rem/1.1 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.tvh-sidebar-cta-text {
  font: 400 .8125rem/1.5 'Inter', sans-serif;
  color: rgba(255, 255, 255, .9);
  margin-bottom: .875rem;
}

.tvh-sidebar-cta-btn {
  display: inline-block;
  padding: .625rem 1.125rem;
  background: #fff;
  color: var(--tvh-red);
  font: 700 .75rem/1 'Inter', sans-serif;
}

/* --- Pagination --- */
.tvh-pagination,
.tvh-pagination-wrap .tvh-pagination {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .5rem;
}

.tvh-pagination-wrap {
  padding-block: 0 2.75rem;
}

.tvh-pagination-item {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--tvh-border);
  font: 600 .8125rem/1 'Inter', sans-serif;
  color: var(--tvh-dark);
}

.tvh-pagination-active {
  background: var(--tvh-red);
  border-color: var(--tvh-red);
  color: #fff;
  font-weight: 700;
}

.tvh-pagination-next,
.tvh-pagination-prev {
  width: auto;
  padding: 0 1rem;
}

.tvh-pagination-ellipsis {
  padding: 0 .25rem;
  color: var(--tvh-text-tertiary);
  font: 600 .8125rem/1 'Inter', sans-serif;
}

/* --- Artikel-Detail --- */
.tvh-article-title {
  margin: 0 0 1.125rem;
  font: 800 clamp(1.875rem, 4.2vw, 2.875rem)/1.05 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--tvh-dark);
}

.tvh-article-lead {
  margin: 0 0 1.375rem;
  font: 400 1.125rem/1.6 'Inter', sans-serif;
  color: var(--tvh-text);
  max-width: 62ch;
}

.tvh-article-body {
  font: 400 1rem/1.7 'Inter', sans-serif;
  color: var(--tvh-text);
}

/* 62ch nur für Fließtext-Absätze (Lesbarkeit), nicht für den ganzen Content-Bereich —
   sonst werden auch Tabellen/Bilder auf Lesebreite gequetscht (z.B. alte Word-Layout-
   Tabellen mit Bild: die Tabelle passt dann nicht mehr hinein und scrollt horizontal
   statt normal umzubrechen). */
.tvh-article-body > p {
  max-width: 62ch;
}

.tvh-article-body img {
  max-width: 100%;
  height: auto;
}

.tvh-article-body :first-child {
  margin-top: 0;
}

/* Bootscore erzwingt in _tables.scss "white-space:nowrap" für .table-responsive .table
   (Ausgleich dafür, dass body { word-break: break-word } sonst Wörter in Tabellenzellen
   mitten im Wort umbricht) — für echte, schmale Datentabellen sinnvoll, verhindert bei
   unseren alten Word-Layout-Tabellen mit Fließtext aber jeden Zeilenumbruch komplett.
   Für unseren Content-Bereich zurück auf normales Umbruchverhalten. */
.tvh-article-body .table-responsive .table {
  white-space: normal;
}

/* Bootstrap-Tabellen (z.B. aus alten Bestenlisten importiert) haben eine eigene weiße
   Hintergrundfarbe über --bs-table-bg — soll stattdessen den Seitenhintergrund durchscheinen
   lassen statt einen weißen Kasten zu bilden. */
.tvh-article-body .table {
  --bs-table-bg: transparent;
}

.tvh-share {
  display: flex;
  flex-wrap: wrap;
  gap: .625rem;
  align-items: center;
  padding-top: 1.375rem;
  margin-top: 1.625rem;
  border-top: 1px solid var(--tvh-border);
}

.tvh-share-label {
  font: 600 .6875rem/1 'Inter', sans-serif;
  color: var(--tvh-text-tertiary);
  letter-spacing: .05em;
}

.tvh-share-btn {
  padding: .5rem .875rem;
  border: 1px solid var(--tvh-border-strong);
  font: 600 .75rem/1 'Inter', sans-serif;
  color: var(--tvh-dark);
  background: #fff;
  cursor: pointer;
}

.tvh-share-btn:hover {
  border-color: var(--tvh-red);
  color: var(--tvh-red);
}

.tvh-prev-next {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.625rem;
}

.tvh-prev-next-card {
  display: block;
  background: #fff;
  border: 1px solid var(--tvh-border);
  padding: 1.125rem;
}

.tvh-prev-next-card--right {
  text-align: right;
}

.tvh-prev-next-label {
  font: 600 .6875rem/1 'Inter', sans-serif;
  color: var(--tvh-text-tertiary);
  margin-bottom: .375rem;
}

.tvh-prev-next-title {
  font: 600 .875rem/1.4 'Inter', sans-serif;
  color: var(--tvh-dark);
}

/* --- Galerie-Übersicht --- */
.tvh-year-filter {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.tvh-year-chip {
  padding: .5625rem 1rem;
  background: #fff;
  border: 1px solid var(--tvh-border-strong);
  font: 600 .75rem/1 'Inter', sans-serif;
  color: var(--tvh-dark);
}

.tvh-year-chip-active {
  background: var(--tvh-red);
  border-color: var(--tvh-red);
  color: #fff;
}

.tvh-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.125rem;
  padding-block: 1.5rem 2.75rem;
}

.tvh-gallery-sections .tvh-gallery-grid {
  padding-block: 0 2.75rem;
}

.tvh-gallery-card {
  display: block;
  background: #fff;
  border: 1px solid var(--tvh-border);
  color: inherit;
}

.tvh-gallery-card-img {
  height: 170px;
  background-size: cover;
  background-position: center;
  background-color: var(--tvh-border);
}

.tvh-gallery-card-img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: repeating-linear-gradient(135deg, var(--tvh-border) 0 10px, #eae7e1 10px 20px);
  color: var(--tvh-text-tertiary);
  font: 500 .75rem/1.4 ui-monospace, Menlo, monospace;
  text-align: center;
}

.tvh-gallery-card-body {
  padding: .875rem 1rem;
}

.tvh-gallery-card-title {
  font: 700 .9375rem/1.3 'Inter', sans-serif;
  color: var(--tvh-dark);
}

.tvh-gallery-card-count {
  font: 500 .6875rem/1 'Inter', sans-serif;
  color: var(--tvh-text-tertiary);
  margin-top: .375rem;
}

.tvh-gallery-section-heading {
  margin: 0;
  padding-block: 2rem 0;
  font: 800 1.5rem/1 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  color: var(--tvh-dark);
}

.tvh-gallery-sections .tvh-gallery-section-heading:first-child {
  padding-top: 2.25rem;
}

/* --- Galerie-Detail (Foto-Grid) --- */
.tvh-gallery-description {
  margin-bottom: 1.75rem;
}

.tvh-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .75rem;
}

.tvh-photo-grid-item {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--tvh-border);
}

.tvh-photo-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s ease;
}

.tvh-photo-grid-item:hover img {
  transform: scale(1.04);
}
