/* ==========================================================================
   Viola Hurricanes – Template „hurricane“ (Joomla 6)
   Dunkel als Standard, hell per Umschalter. Farben nur über Variablen.
   ========================================================================== */

@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-condensed-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/barlow-condensed-800.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/inter-variable.woff2") format("woff2"); }

:root {
  --vh-violet: #5a2a9a;
  --vh-violet-strong: #3d1270;
  --vh-violet-deep: #220842;
  --vh-orange: #f08a1c;
  --vh-bg: #140a20;
  --vh-surface: #1e1230;
  --vh-surface-2: #281940;
  --vh-fg: #ece6f4;
  --vh-muted: #a79bb8;
  --vh-line: #33244a;
  --vh-link: #f5a54a;
  --vh-win: #1f9d55;
  --vh-draw: #9a8f2a;
  --vh-loss: #c43d3d;
  --vh-header-bg: #ffffff;
  --vh-header-fg: #2a1a3d;
  --vh-font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --vh-font-body: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --vh-radius: 12px;
  --vh-gap: 28px;
  --vh-max: 1240px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --vh-violet: #3d1270;
  --vh-bg: #f5f3f8;
  --vh-surface: #ffffff;
  --vh-surface-2: #f1ebf8;
  --vh-fg: #1d1526;
  --vh-muted: #6b6276;
  --vh-line: #e4dfeb;
  --vh-link: #8a3fd1;
  color-scheme: light;
}
/* Orange als Textfarbe auf hellem Grund abdunkeln (Kontrast) */
:root[data-theme="light"] .vh-main .vh-eyebrow,
:root[data-theme="light"] .vh-main .vh-score,
:root[data-theme="light"] .vh-main .vh-more,
:root[data-theme="light"] .vh-main a:hover { color: #b4530a; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--vh-bg);
  color: var(--vh-fg);
  font: 400 1rem/1.65 var(--vh-font-body);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--vh-link); text-underline-offset: .15em; }
a:hover { color: var(--vh-orange); }
:focus-visible { outline: 3px solid var(--vh-orange); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--vh-font-display); line-height: 1.12; text-wrap: balance; margin: 1.4em 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--vh-line); margin: 2rem 0; }
.vh-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vh-skip { position: absolute; left: -999px; top: 8px; background: var(--vh-orange); color: #1d1526; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.vh-skip:focus { left: 12px; }

.vh-wrap {
  max-width: var(--vh-max);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.vh-eyebrow { font: 600 .75rem/1 var(--vh-font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--vh-orange); }

/* ---------- Kopf ---------- */
.vh-header {
  background: var(--vh-header-bg);
  color: var(--vh-header-fg);
  border-bottom: 4px solid var(--vh-violet-strong);
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
}
.vh-header__inner { display: flex; align-items: center; gap: 16px; min-height: 72px; position: relative; }
.vh-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.vh-logo img { height: 40px; width: auto; display: block; }
.vh-logo__text { font: 800 1.6rem/1 var(--vh-font-display); color: var(--vh-violet-strong); text-transform: uppercase; }
.vh-iconbtn { background: none; border: 1px solid #e3dced; border-radius: 8px; width: 42px; height: 42px; display: grid; place-items: center; cursor: pointer; color: var(--vh-header-fg); }
.vh-burger { display: none; margin-left: auto; }

.vh-nav { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.vh-nav ul { list-style: none; margin: 0; padding: 0; }
.vh-nav > .mod-menu, .vh-nav > ul { display: flex; align-items: center; gap: 0; flex-wrap: nowrap; }
.vh-nav li { position: relative; }
.vh-nav a, .vh-nav .mod-menu__heading, .vh-nav .nav-header, .vh-nav .mod-menu__separator {
  display: block;
  font: 600 1rem/1 var(--vh-font-display);
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--vh-header-fg);
  text-decoration: none;
  padding: 12px 9px;
  border-radius: 6px;
  white-space: nowrap;
}
.vh-nav a:hover { background: #f1ebf8; color: var(--vh-violet-strong); }
.vh-nav li.current > a, .vh-nav li.active > a { color: var(--vh-violet-strong); box-shadow: inset 0 -3px 0 var(--vh-orange); border-radius: 0; }

/* Untermenüs: Dropdown am Desktop */
.vh-nav li ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
  border: 1px solid #e3dced;
  border-top: 3px solid var(--vh-orange);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 14px 30px rgba(20, 6, 40, .18);
  padding: 6px;
  display: none;
  z-index: 60;
}
.vh-nav li ul ul { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 12px; max-height: none; min-width: 0; overflow: visible; }
.vh-nav li ul a { text-transform: none; font-family: var(--vh-font-body); font-weight: 500; font-size: .95rem; letter-spacing: 0; padding: 9px 10px; }
.vh-nav li:hover > ul, .vh-nav li:focus-within > ul { display: block; }
.vh-nav .mod-menu__toggle-sub, .vh-nav .mm-toggler { display: none; }

.vh-search { min-width: 0; }
.vh-search input[type="search"], .vh-search input[type="text"] {
  width: 150px; max-width: 100%;
  font: inherit; font-size: .9rem;
  padding: 9px 12px;
  border: 1px solid #e3dced;
  border-radius: 8px;
  background: #faf8fc;
  color: var(--vh-header-fg);
}
.vh-search button, .vh-search .btn { display: none; }
.vh-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 1180px) {
  .vh-burger { display: grid; }
  .vh-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px));
    border-bottom: 4px solid var(--vh-violet-strong);
    box-shadow: 0 18px 30px rgba(20, 6, 40, .2);
    max-height: calc(100dvh - 76px); overflow-y: auto;
    display: none; margin: 0;
  }
  .vh-nav.is-open { display: flex; }
  .vh-nav > .mod-menu, .vh-nav > ul { flex-direction: column; align-items: stretch; }
  .vh-nav a { padding: 14px 8px; border-bottom: 1px solid #f0ecf5; border-radius: 0; }
  .vh-nav li ul { position: static; display: none; box-shadow: none; border: 0; border-left: 3px solid var(--vh-orange); border-radius: 0; max-height: none; padding: 0 0 0 10px; }
  .vh-nav li.is-open > ul { display: block; }
  .vh-nav li:hover > ul, .vh-nav li:focus-within > ul { display: none; }
  .vh-nav li.is-open > ul { display: block; }
  .vh-nav .vh-subtoggle { position: absolute; right: 0; top: 4px; width: 44px; height: 40px; border: 0; background: none; color: var(--vh-header-fg); font-size: 1.2rem; cursor: pointer; }
  .vh-search { padding-top: 12px; width: 100%; }
  .vh-search form, .vh-search .mod-finder, .vh-search .awesomplete { width: 100%; display: block; }
  .vh-search input[type="search"], .vh-search input[type="text"] { width: 100%; }
}
@media (min-width: 1181px) { .vh-subtoggle { display: none; } }
@media (max-width: 520px) { .vh-logo img { height: 30px; } }

/* ---------- Formleiste ---------- */
.vh-formbar { background: var(--vh-violet-deep); color: #d9cdea; }
.vh-formbar__inner { display: flex; gap: 14px 18px; align-items: center; flex-wrap: wrap; padding-block: 10px; font-size: .85rem; }
.vh-formbar__season { color: #fff; font: 700 1.05rem/1 var(--vh-font-display); letter-spacing: .04em; text-transform: uppercase; }
.vh-form { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.vh-form__item { width: 26px; height: 26px; border-radius: 5px; display: grid; place-items: center; font: 700 .85rem/1 var(--vh-font-display); color: #fff; text-decoration: none; }
.vh-form__item:hover { color: #fff; transform: translateY(-1px); }
:is(.vh-form__item, .vh-badge).is-S { background: var(--vh-win); } :is(.vh-form__item, .vh-badge).is-U { background: var(--vh-draw); } :is(.vh-form__item, .vh-badge).is-N { background: var(--vh-loss); }
.vh-formbar__next { margin-left: auto; }
.vh-formbar__next b { color: #fff; }
@media (max-width: 640px) { .vh-formbar__next { margin-left: 0; width: 100%; } }

/* ---------- Spalten ---------- */
.vh-main { padding-block: 0 48px; }
.vh-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--vh-gap); padding-top: 32px; }
.vh-cols.has-left { grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); }
.vh-cols.has-right { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); }
.vh-cols.has-left.has-right { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr) minmax(0, 1fr); }
.vh-content { min-width: 0; }
.is-home .vh-cols { padding-top: 28px; }
@media (max-width: 1100px) {
  .vh-cols.has-left.has-right { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .vh-cols.has-left.has-right .vh-side--left { order: 3; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; align-items: start; }
}
@media (max-width: 820px) {
  .vh-cols, .vh-cols.has-left, .vh-cols.has-right, .vh-cols.has-left.has-right { grid-template-columns: minmax(0, 1fr); }
  .vh-side--left { order: 3; }
}
.vh-breadcrumbs { padding-top: 18px; font-size: .85rem; color: var(--vh-muted); }
.vh-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.vh-breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--vh-muted); }
.vh-top { padding-top: 24px; }

/* ---------- Module (Stil „card“) ---------- */
.vh-side .moduletable, .vh-side .card, .vh-top .card, .vh-bottom .card {
  background: var(--vh-surface);
  border: 1px solid var(--vh-line);
  border-radius: var(--vh-radius);
  padding: 16px;
  margin-bottom: 18px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.vh-side .card-header, .vh-side .moduletable > h3, .vh-top .card-header, .vh-bottom .card-header {
  font: 700 1.15rem/1.15 var(--vh-font-display);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin: 0 0 12px;
  padding: 0 0 10px;
  background: none;
  border-bottom: 2px solid var(--vh-line);
  color: var(--vh-fg);
}
.vh-side .card-body { padding: 0; }
.vh-side img { border-radius: 8px; display: block; }
.vh-side ul { list-style: none; margin: 0; padding: 0; }
.vh-side li { padding: 8px 0; border-bottom: 1px solid var(--vh-line); font-size: .92rem; }
.vh-side li:last-child { border-bottom: 0; }
.vh-side a { color: var(--vh-fg); text-decoration: none; }
.vh-side a:hover { color: var(--vh-orange); }
.vh-side p { font-size: .92rem; color: var(--vh-muted); }

/* ---------- Abschnittsköpfe ---------- */
.vh-secthead { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.vh-secthead h2, .vh-secthead h3 { margin: 0; font-size: 1.4rem; text-transform: uppercase; letter-spacing: .03em; }
.vh-secthead::after { content: ""; flex: 1; height: 2px; background: var(--vh-line); }

/* ---------- Hero (Startseite) ---------- */
.vh-hero { background: linear-gradient(180deg, var(--vh-violet-deep), var(--vh-violet-strong) 160%); margin: 0 0 4px; padding-block: 28px 32px; }
.vh-hero__inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; }
.vh-feature { position: relative; border-radius: var(--vh-radius); overflow: hidden; min-height: 400px; background: #000; color: #fff; display: flex; align-items: flex-end; text-decoration: none; }
.vh-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .88; transition: transform .6s ease; }
.vh-feature:hover img { transform: scale(1.03); }
.vh-feature:hover { color: #fff; }
.vh-feature__cap { position: relative; padding: 28px; width: 100%; background: linear-gradient(0deg, rgba(20, 6, 40, .96), rgba(20, 6, 40, 0)); }
.vh-feature__title { font: 800 clamp(1.8rem, 4vw, 2.8rem)/1.05 var(--vh-font-display); text-transform: uppercase; margin: 6px 0 0; }
.vh-feature__meta { font-size: .85rem; color: #d6c9e8; margin-top: 8px; }
.vh-score { color: var(--vh-orange); font-variant-numeric: tabular-nums; }
.vh-newslist { display: flex; flex-direction: column; gap: 10px; list-style: none; margin: 0; padding: 0; }
.vh-newslist a { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; background: rgba(255, 255, 255, .07); border-radius: 10px; padding: 10px; color: #fff; text-decoration: none; transition: background .2s; }
.vh-newslist a:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.vh-newslist img, .vh-newslist .vh-ph { width: 88px; height: 66px; object-fit: cover; border-radius: 6px; background: var(--vh-violet-strong); }
.vh-newslist time { font-size: .75rem; color: var(--vh-orange); font-weight: 600; }
.vh-newslist b { display: block; font: 600 1.05rem/1.15 var(--vh-font-display); text-transform: uppercase; overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .vh-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .vh-feature { display: block; min-height: 0; background: rgba(20, 6, 40, .96); }
  .vh-feature img { position: static; aspect-ratio: 16 / 9; height: auto; opacity: 1; }
  .vh-feature__cap { background: none; padding: 16px 18px 20px; }
}

/* ---------- Karten (Spielberichte / Beiträge) ---------- */
.vh-cards { display: flex; flex-direction: column; gap: 16px; }
.vh-card { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 18px; background: var(--vh-surface); border: 1px solid var(--vh-line); border-radius: var(--vh-radius); overflow: hidden; }
.vh-card__media { display: block; background: var(--vh-surface-2); min-height: 160px; }
.vh-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vh-card__body { padding: 16px 18px 16px 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vh-card__top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.vh-card__title { font: 700 1.35rem/1.12 var(--vh-font-display); text-transform: uppercase; margin: 0; overflow-wrap: anywhere; }
.vh-card__title a { color: var(--vh-fg); text-decoration: none; }
.vh-card__title a:hover { color: var(--vh-orange); }
.vh-card__ht { color: var(--vh-muted); font-weight: 500; }
.vh-card__facts { font-size: .85rem; color: var(--vh-muted); }
.vh-card__text { font-size: .92rem; color: var(--vh-muted); margin: 0; }
.vh-goals { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.vh-goals li { font-size: .78rem; background: var(--vh-bg); border: 1px solid var(--vh-line); border-radius: 999px; padding: 2px 10px; font-variant-numeric: tabular-nums; }
.vh-badge { font: 700 .85rem/1 var(--vh-font-display); padding: 4px 8px; border-radius: 4px; color: #fff; letter-spacing: .03em; text-transform: uppercase; }
.vh-more { font: 600 .78rem/1 var(--vh-font-body); color: var(--vh-orange); text-transform: uppercase; letter-spacing: .08em; margin-top: auto; text-decoration: none; padding-top: 4px; }
.vh-card--noimg { grid-template-columns: minmax(0, 1fr); }
.vh-card--noimg .vh-card__body { padding-left: 18px; }
@media (max-width: 600px) {
  .vh-card { grid-template-columns: minmax(0, 1fr); }
  .vh-card__media { min-height: 0; }
  .vh-card__media img { aspect-ratio: 16 / 9; height: auto; }
  .vh-card__body { padding: 0 16px 16px; }
  .vh-card--noimg .vh-card__body { padding: 16px; }
}

.vh-linklist { background: var(--vh-surface); border: 1px solid var(--vh-line); border-radius: var(--vh-radius); padding: 4px 18px; list-style: none; margin: 24px 0 0; }
.vh-linklist li { border-bottom: 1px solid var(--vh-line); }
.vh-linklist li:last-child { border: 0; }
.vh-linklist a { display: block; padding: 11px 0; color: var(--vh-fg); text-decoration: none; font-size: .95rem; }
.vh-linklist a:hover { color: var(--vh-orange); }

/* ---------- Beitrag ---------- */
/* Beitrag nutzt die volle Breite (Ergebnis, Foto), Fließtext bleibt lesbar */
.vh-article { max-width: none; }
.vh-article__body { max-width: 960px; }
/* Galerien und Statistik dürfen die volle Breite nutzen */
.vh-article__body:has(.vhg), .vh-article__body:has(.vhs) { max-width: none; }
.vh-article__eyebrow { margin-bottom: 6px; }
.vh-article h1 { margin-top: 0; }
.vh-article__info { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .85rem; color: var(--vh-muted); margin: 0 0 18px; }
.vh-article__image { margin: 0 0 22px; }
.vh-article__image img { border-radius: var(--vh-radius); width: 100%; display: block; max-height: 72vh; object-fit: cover; }
.vh-article__image figcaption { font-size: .8rem; color: var(--vh-muted); margin-top: 6px; }
.vh-article__body { font-size: 1.04rem; overflow-wrap: anywhere; }
.vh-article__body img { border-radius: 8px; }
.vh-article__body table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.vh-article__body td, .vh-article__body th { border: 1px solid var(--vh-line); padding: 6px 10px; }
.vh-article__body iframe { border: 0; border-radius: 10px; }
.vh-scoreboard { margin: 0 0 24px; background: var(--vh-violet-deep); color: #fff; border-radius: 14px; padding: 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; text-align: center; }
.vh-scoreboard__team { font: 700 clamp(1.2rem, 3.4vw, 1.9rem)/1.05 var(--vh-font-display); text-transform: uppercase; overflow-wrap: anywhere; }
.vh-scoreboard__team.is-own { color: #fff; }
.vh-scoreboard__team:not(.is-own) { color: #d6c9e8; }
.vh-scoreboard__score { font: 800 clamp(2.8rem, 8vw, 4.4rem)/1 var(--vh-font-display); color: var(--vh-orange); font-variant-numeric: tabular-nums; }
.vh-scoreboard__ht { font-size: .8rem; color: #cbbbe0; margin-top: 4px; }
.vh-scoreboard__info { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: .85rem; color: #d9cdea; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 12px; }
.vh-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.vh-prevnext a { background: var(--vh-surface); border: 1px solid var(--vh-line); border-radius: 10px; padding: 14px; font-size: .9rem; color: var(--vh-fg); text-decoration: none; }
.vh-prevnext a:hover { border-color: var(--vh-orange); }
.vh-prevnext small { display: block; color: var(--vh-orange); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; margin-bottom: 4px; }
.vh-prevnext .is-next { text-align: right; grid-column: 2; }
.vh-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 20px 0 0; }
.vh-tags a { display: inline-block; font-size: .78rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--vh-line); color: var(--vh-muted); text-decoration: none; }

/* Joomla-Navigation „vorheriger / nächster Beitrag“ */
.pagenavigation { margin-top: 32px; }
.pagenavigation .pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.pagenavigation a { display: block; background: var(--vh-surface); border: 1px solid var(--vh-line); border-radius: 10px; padding: 12px 14px; color: var(--vh-fg); text-decoration: none; font-size: .9rem; }
.pagenavigation a:hover { border-color: var(--vh-orange); color: var(--vh-fg); }
.pagenavigation .next { text-align: right; grid-column: 2; }
.pagenavigation .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.vh-hero { margin-bottom: 0; }
.vh-pagination { margin-top: 8px; }

/* ---------- Kategorien / Archiv ---------- */
.vh-page-head { margin-bottom: 20px; }
.vh-page-head h1 { margin: 0 0 6px; }
.vh-page-head p { color: var(--vh-muted); max-width: 65ch; }
.vh-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin: 0 0 28px; padding: 0; list-style: none; }
.vh-tile { display: flex; flex-direction: column; gap: 4px; background: var(--vh-surface); border: 1px solid var(--vh-line); border-radius: var(--vh-radius); padding: 16px; text-decoration: none; color: var(--vh-fg); height: 100%; transition: border-color .2s, transform .2s; }
.vh-tile:hover { border-color: var(--vh-orange); color: var(--vh-fg); transform: translateY(-2px); }
.vh-tile b { font: 700 1.35rem/1.05 var(--vh-font-display); text-transform: uppercase; }
.vh-tile span { font-size: .82rem; color: var(--vh-muted); }
.vh-tile .vh-tile__n { font: 800 2rem/1 var(--vh-font-display); color: var(--vh-orange); margin-top: 6px; font-variant-numeric: tabular-nums; }

/* Kategorieliste (Tabelle) */
.com-content-category table, .category.table, table.table { width: 100%; border-collapse: collapse; background: var(--vh-surface); border: 1px solid var(--vh-line); border-radius: var(--vh-radius); overflow: hidden; }
.com-content-category th, .com-content-category td, table.table th, table.table td { padding: 11px 14px; border-bottom: 1px solid var(--vh-line); text-align: left; vertical-align: top; }
.com-content-category thead th, table.table thead th { font: 600 .78rem/1.2 var(--vh-font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--vh-muted); background: var(--vh-surface-2); }
.com-content-category thead th a, table.table thead th a { color: var(--vh-muted); text-decoration: none; }
.com-content-category tbody th, table.table tbody th { font: 500 .95rem/1.4 var(--vh-font-body); text-transform: none; letter-spacing: 0; background: none; }
.com-content-category tbody tr:hover, table.table tbody tr:hover { background: var(--vh-surface-2); }
.com-content-category td a, .com-content-category tbody th a, table.table td a, table.table tbody th a { color: var(--vh-fg); text-decoration: none; font-weight: 500; text-transform: none; }
.com-content-category td a:hover, .com-content-category tbody th a:hover, table.table td a:hover, table.table tbody th a:hover { color: var(--vh-orange); }
.collapse:not(.show) { display: none; }
.result__taxonomy--Author, .com-finder__advanced .filter-branch:has(#tax-Author) { display: none; }
.visually-hidden, .element-invisible { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.com-content-category .list-hits, .com-content-category .list-date { white-space: nowrap; color: var(--vh-muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.com-content-category__table-wrap, .com-content-category .table-responsive { overflow-x: auto; }
.com-content-category .com-content-category__filter, .filter-search, .btn-group { margin-bottom: 14px; }

/* ---------- Formulare, Buttons, Meldungen ---------- */
input[type="text"], input[type="search"], input[type="email"], input[type="password"], select, textarea, .form-control, .form-select {
  font: inherit; font-size: .95rem; color: var(--vh-fg); background: var(--vh-surface); border: 1px solid var(--vh-line); border-radius: 8px; padding: 9px 12px; max-width: 100%;
}
.btn, button.btn, input[type="submit"] { font: 600 .9rem/1 var(--vh-font-body); background: var(--vh-violet); color: #fff; border: 0; border-radius: 8px; padding: 11px 16px; cursor: pointer; text-decoration: none; display: inline-block; }
.btn:hover { background: var(--vh-orange); color: #1d1526; }
joomla-alert, .alert { display: block; border-radius: 10px; padding: 12px 16px; margin: 16px auto; max-width: var(--vh-max); background: var(--vh-surface); border: 1px solid var(--vh-line); color: var(--vh-fg); }

/* ---------- Seitennavigation ---------- */
.pagination, .com-content-category-blog__navigation ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 28px 0 0; }
.pagination .page-link, .pagination a, .pagination span.page-link { min-width: 38px; height: 38px; padding: 0 10px; display: grid; place-items: center; border: 1px solid var(--vh-line); border-radius: 8px; background: var(--vh-surface); color: var(--vh-fg); text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.pagination .active .page-link, .pagination .page-item.active span { background: var(--vh-violet); border-color: var(--vh-violet); color: #fff; }
.pagination .disabled .page-link { opacity: .45; }
.counter, .com-content-category-blog__counter { color: var(--vh-muted); font-size: .85rem; margin-top: 10px; }

/* Suche (Smart Search) */
.com-finder__results-list { list-style: none; padding: 0; }
.com-finder__results-list li { padding: 14px 0; border-bottom: 1px solid var(--vh-line); }
.result__title-text { font: 700 1.2rem/1.15 var(--vh-font-display); }
.result__description { color: var(--vh-muted); font-size: .92rem; }
mark { background: rgba(240, 138, 28, .3); color: inherit; padding: 0 2px; border-radius: 3px; }

/* ---------- Fuß ---------- */
.vh-footer { background: var(--vh-violet-deep); color: #cbbbe0; font-size: .88rem; margin-top: 24px; }
.vh-footer__inner { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); }
.vh-footer__brand { display: flex; flex-direction: column; gap: 2px; }
.vh-footer__brand b { color: #fff; font: 700 1.2rem/1 var(--vh-font-display); letter-spacing: .04em; text-transform: uppercase; }
.vh-footer a { color: #e6dbf3; text-decoration: none; }
.vh-footer a:hover { color: var(--vh-orange); }
.vh-footer__links { flex: 1; min-width: 0; }
.vh-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; }
.vh-footer p, .vh-footer small { margin: 6px 0 0; font-size: .78rem; color: #a99cbd; }
.vh-footer .moduletable { margin: 0; }
.vh-theme { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; padding: 8px 14px; font: 600 .78rem/1 var(--vh-font-body); cursor: pointer; }
.vh-theme:hover { background: var(--vh-orange); color: #1d1526; border-color: var(--vh-orange); }
:root[data-theme="dark"] .vh-theme__light, :root[data-theme="light"] .vh-theme__dark { display: none; }

/* ---------- Galerie-Plugin an das Template anpassen ---------- */
.vhg { --vh-surface: var(--vh-surface); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .vh-header, .vh-formbar, .vh-side, .vh-footer, .vh-prevnext { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- Nach-oben-Pfeil ---------- */
.vh-totop {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: var(--vh-orange); color: #1d1526;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 40;
}
.vh-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.vh-totop:hover { filter: brightness(1.08); }
@media print { .vh-totop { display: none !important; } }

/* ---------- Link-Kacheln in Seitenmodulen ---------- */
.vh-linktile { margin: 0 0 16px; }
.vh-linktile img { display: block; width: 100%; height: auto; border-radius: 8px; transition: transform .2s; }
.vh-linktile a:hover img { transform: scale(1.02); }
.vh-linktile h4 { margin: 10px 0 2px; font: 700 1.05rem/1.2 var(--vh-font-display); text-transform: uppercase; letter-spacing: .02em; }
.vh-linktile h4 a { color: var(--vh-fg); text-decoration: none; }
.vh-linktile p { margin: 0; color: var(--vh-muted); font-size: .9rem; }
.vh-side hr { border: 0; border-top: 1px solid var(--vh-line); margin: 16px 0; }
.vh-main:focus { outline: none; }
.vh-seasonbox { margin: 0 0 1.5rem; }
/* Bilanzkasten in der Seitenleiste: eigener Rahmen kommt vom Plugin */
.vh-side .moduletable.vh-statbox { padding: 0; background: none; border: 0; box-shadow: none; }
.vh-statbox .vhs-box { margin: 0; }

/* ---------- Feinschliff Startseite (2026-11-30) ---------- */
/* Kopfleiste im dunklen Modus dunkel, damit die Seite aus einem Guss wirkt (Logo ist transparent) */
:root:not([data-theme="light"]) { --vh-header-bg: #1a0a30; --vh-header-fg: #ece6f4; }
:root:not([data-theme="light"]) .vh-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
:root:not([data-theme="light"]) .vh-nav li.current > a,
:root:not([data-theme="light"]) .vh-nav li.active > a { color: #fff; }
:root:not([data-theme="light"]) .vh-iconbtn { border-color: rgba(255, 255, 255, .2); }
/* Großes Spiel: Verlauf reicht bis über die Überzeile, damit Runde/Datum auf hellen Fotos lesbar bleiben */
.vh-feature__cap { background: linear-gradient(0deg, rgba(20, 6, 40, .97) 0%, rgba(20, 6, 40, .85) 55%, rgba(20, 6, 40, 0) 100%); padding-top: 90px; }
.vh-feature__cap .vh-eyebrow { text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
/* Kartenbilder links ausrichten: Bildunterschriften im Foto (unten links) werden nicht mehr mittig abgeschnitten */
.vh-card__media img { object-position: left center; }
/* Dropdown, Mobilmenü und Suchfeld zur dunklen Kopfleiste passend */
:root:not([data-theme="light"]) .vh-nav li ul { background: var(--vh-header-bg); border-color: var(--vh-line); border-top-color: var(--vh-orange); box-shadow: 0 14px 30px rgba(0, 0, 0, .45); }
@media (max-width: 1180px) {
  :root:not([data-theme="light"]) .vh-nav { background: var(--vh-header-bg); box-shadow: 0 18px 30px rgba(0, 0, 0, .45); }
  :root:not([data-theme="light"]) .vh-nav a { border-bottom-color: var(--vh-line); }
}
:root:not([data-theme="light"]) .vh-search input[type="search"],
:root:not([data-theme="light"]) .vh-search input[type="text"] { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); }
:root:not([data-theme="light"]) .vh-search input::placeholder { color: var(--vh-muted); }
/* Fotoraster mit Bildunterschriften im Beitrag (z. B. Derby Choreos) */
.vh-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin: 20px 0; }
.vh-photos figure { margin: 0; }
.vh-photos img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; transition: transform .2s; }
.vh-photos a:hover img { transform: scale(1.02); }
.vh-photos figcaption { margin-top: 8px; font-size: .88rem; line-height: 1.4; color: var(--vh-muted); }
.vh-source { font-size: .82rem; color: var(--vh-muted); }
.vh-article__body:has(.vh-photos) { max-width: none; }
/* Alte Berichte: „Stimmen zum Spiel“ war fest dunkelblau (#135cae) – auf Violett unlesbar */
.vh-article__body span[style*="135cae" i] { color: var(--vh-orange) !important; font-family: var(--vh-font-display) !important; font-size: 1.15rem !important; text-transform: uppercase; letter-spacing: .02em; }
:root[data-theme="light"] .vh-article__body span[style*="135cae" i] { color: #b4530a !important; }
/* Archiv am Handy: zwei Kacheln nebeneinander statt einer */
@media (max-width: 600px) {
  .vh-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 600px) {
  .vh-tile { padding: 12px; }
  .vh-tile b { font-size: 1.1rem; overflow-wrap: anywhere; }
  .vh-tile .vh-tile__n { font-size: 1.6rem; }
}
/* „Heute vor … Jahren“ in der Seitenleiste der Startseite */
.vh-otd h3 { margin: 0; }
.vh-otd__sub { margin: 2px 0 12px; font-size: .82rem; color: var(--vh-muted); }
.vh-otd__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.vh-otd__list a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--vh-surface-2); color: var(--vh-fg); text-decoration: none; border: 1px solid transparent; transition: border-color .2s; }
.vh-otd__list a:hover { border-color: var(--vh-orange); color: var(--vh-fg); }
.vh-otd__ago { font: 700 .78rem/1 var(--vh-font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--vh-orange); }
.vh-otd__list b { font: 700 1.05rem/1.2 var(--vh-font-display); text-transform: uppercase; }
.vh-otd__meta { font-size: .78rem; color: var(--vh-muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.vh-otd__meta .vh-badge { font-size: .7rem; padding: 2px 6px; }
/* ---------- Großes Spiel: Bildausschnitt oben, rechte Spalte über die volle Höhe ---------- */
.vh-feature img { object-position: center 22%; }
.vh-hero__side { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.vh-hero__side .vh-newslist { flex: 1; }
.vh-hero__side .vh-newslist li { flex: 1; display: flex; }
.vh-hero__side .vh-newslist a { flex: 1; align-items: center; grid-template-columns: 112px minmax(0, 1fr); }
.vh-hero__side .vh-newslist img, .vh-hero__side .vh-newslist .vh-ph { width: 112px; height: 76px; }
.vh-hero__all { align-self: flex-end; font: 700 .9rem/1 var(--vh-font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--vh-orange); text-decoration: none; padding: 4px 2px; }
.vh-hero__all:hover { color: #fff; }
@media (max-width: 900px) {
  .vh-hero__side .vh-newslist li { flex: none; }
  .vh-hero__side .vh-newslist a { grid-template-columns: 88px minmax(0, 1fr); }
  .vh-hero__side .vh-newslist img, .vh-hero__side .vh-newslist .vh-ph { width: 88px; height: 66px; }
}

/* ---------- Spieldaten im Spielbericht ---------- */
.vh-facts { display: grid; gap: 18px; margin: 22px 0 26px; }
.vh-facts__block { background: var(--vh-surface); border: 1px solid var(--vh-line); border-radius: var(--vh-radius); padding: 16px 18px; }
.vh-facts__title { margin: 0 0 12px; font: 700 1.15rem/1 var(--vh-font-display); letter-spacing: .04em; text-transform: uppercase; }
/* Zeitleiste */
.vh-tl { position: relative; height: 34px; margin: 6px 8px 14px; }
.vh-tl__line { position: absolute; left: 0; right: 0; top: 16px; height: 3px; border-radius: 2px; background: var(--vh-line); }
.vh-tl__mark { position: absolute; top: 24px; transform: translateX(-50%); font-size: .68rem; color: var(--vh-muted); }
.vh-tl__mark::before { content: ""; position: absolute; left: 50%; top: -11px; width: 1px; height: 9px; background: var(--vh-muted); }
.vh-tl__goal { position: absolute; top: 9px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #b9adc9; border: 2px solid var(--vh-surface); }
.vh-tl__goal.is-own { background: var(--vh-orange); }
.vh-tl__goal.is-home { top: 2px; }
.vh-tl__goal.is-away { top: 17px; }
/* Torliste: Heim links, Ergebnis/Minute Mitte, Gast rechts */
.vh-goallist { list-style: none; margin: 0; padding: 0; }
.vh-goallist li { display: grid; grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr); align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--vh-line); }
.vh-goallist li:first-child { border-top: 0; }
.vh-goallist li.is-home .vh-goal__name { text-align: right; }
.vh-goal__name small { display: block; font-size: .75rem; color: var(--vh-muted); }
.vh-goal__mid { text-align: center; display: flex; flex-direction: column; line-height: 1.1; }
.vh-goal__mid b { font: 800 1.15rem/1 var(--vh-font-display); }
.vh-goal__mid span { font-size: .72rem; color: var(--vh-muted); }
.vh-goallist li.is-own .vh-goal__mid b { color: var(--vh-orange); }
.vh-goallist li.is-own .vh-goal__name { font-weight: 600; }
/* Aufstellungen nebeneinander */
.vh-lineups { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.vh-lineup h3 { margin: 0 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--vh-line); font: 700 1rem/1 var(--vh-font-display); letter-spacing: .04em; text-transform: uppercase; }
.vh-lineup.is-own h3 { border-bottom-color: var(--vh-orange); color: var(--vh-orange); }
.vh-lineup ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.vh-lineup li { display: flex; flex-wrap: wrap; gap: 4px 6px; padding: 6px 8px; border-radius: 8px; background: var(--vh-surface-2); }
.vh-pl { font-size: .9rem; }
.vh-pl:not(:last-child)::after { content: ","; }
.vh-sub { font-size: .74rem; color: var(--vh-muted); white-space: nowrap; }
/* Karten */
.vh-cardlist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.vh-cardlist li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; background: var(--vh-surface-2); font-size: .9rem; }
.vh-cardlist small { color: var(--vh-muted); font-size: .75rem; margin-left: 4px; }
.vh-cardico { flex: none; width: 12px; height: 16px; border-radius: 2px; box-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.vh-cardico.is-yellow { background: #f5c518; }
.vh-cardico.is-red { background: #d93025; }
.vh-cardico.is-yellowred { background: linear-gradient(135deg, #f5c518 50%, #d93025 50%); }
@media (max-width: 640px) {
  .vh-lineups { grid-template-columns: 1fr; }
  .vh-goallist li { grid-template-columns: minmax(0, 1fr) 62px minmax(0, 1fr); gap: 6px; font-size: .88rem; }
}
/* Vor/zurück: zweizeilig mit Kennzeichnung */
.vh-prevnext a { display: flex; flex-direction: column; gap: 2px; font: 600 1rem/1.25 var(--vh-font-display); text-transform: uppercase; }
.vh-prevnext .is-prev { grid-column: 1; }
@media (max-width: 640px) { .vh-prevnext { grid-template-columns: 1fr; } .vh-prevnext .is-next { grid-column: 1; } }
/* Fußzeile am Handy untereinander statt gequetscht nebeneinander */
@media (max-width: 600px) {
  .vh-footer__inner { flex-direction: column; align-items: flex-start; gap: 14px; padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .vh-footer__links { flex: none; width: 100%; }
}
