/* Grundlayout ähnlich vtv-partenkirchen.de */
:root {
  --vtv-blue: #1f4f8f;
  --vtv-blue-dark: #163b6b;
  --vtv-border: #d6d6d6;
  --body-bg: #f3f3f3;
}

body {
  background: var(--body-bg);
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
}

/* Seitenbreite wie klassische Joomla-3-Seite */
.site-grid {
  max-width: 1080px;
  margin: 0 auto;
  background: #fff;
  border-left: 1px solid var(--vtv-border);
  border-right: 1px solid var(--vtv-border);
}

/* Header */
.container-header {
  background: #fff;
  border-bottom: 1px solid var(--vtv-border);
  box-shadow: none;
}

/* Logo / Vereinskopf */
.container-header .navbar-brand,
.container-header .brand-logo {
  padding: 15px 20px;
}

.container-header .navbar-brand img,
.container-header .brand-logo img {
  max-height: 130px;
  width: auto;
}

/* Menüleiste blau */
.container-header .container-nav {
  background: var(--vtv-blue);
  padding: 0;
}

.container-header .mod-menu {
  display: flex;
  justify-content: center;
  gap: 0;
}

.container-header .mod-menu > li {
  margin: 0;
}

.container-header .mod-menu > li > a,
.container-header .mod-menu > li > span {
  color: #fff;
  padding: 14px 18px;
  font-weight: bold;
  text-decoration: none;
}

.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li.active > a {
  background: var(--vtv-blue-dark);
  color: #fff;
}

/* Dropdown-Menüs */
.container-header .mod-menu .mm-collapse,
.container-header .mod-menu .dropdown-menu {
  background: #fff;
  border: 1px solid var(--vtv-border);
}

.container-header .mod-menu .mm-collapse a,
.container-header .mod-menu .dropdown-menu a {
  color: #333;
  padding: 10px 15px;
}

.container-header .mod-menu .mm-collapse a:hover,
.container-header .mod-menu .dropdown-menu a:hover {
  background: #eef3f9;
  color: var(--vtv-blue);
}

/* Headerbild / Banner */
.container-banner,
.container-top-a {
  max-width: 1080px;
  margin: 0 auto;
  background: #fff;
}

.container-banner img,
.container-top-a img {
  width: 100%;
  height: auto;
  display: block;
}

/* Hauptinhalt */
.container-component,
main {
  background: #fff;
  padding: 25px 30px;
}

.com-content-article,
.blog-item,
.item-page {
  line-height: 1.6;
  font-size: 16px;
}

/* Überschriften */
h1, h2, h3 {
  color: var(--vtv-blue);
  font-weight: bold;
}

h1 {
  font-size: 28px;
  border-bottom: 1px solid var(--vtv-border);
  padding-bottom: 8px;
}

h2 {
  font-size: 22px;
}

/* Bilder im Inhalt */
.item-page img,
.com-content-article img {
  max-width: 100%;
  height: auto;
}

/* Breadcrumb / aktuelle Seite */
.breadcrumb {
  background: #f7f7f7;
  border: 1px solid var(--vtv-border);
  padding: 8px 12px;
  font-size: 14px;
}

/* Footer */
.container-footer {
  background: var(--vtv-blue);
  color: #fff;
  text-align: center;
  padding: 18px;
  margin-top: 0;
}

.container-footer a {
  color: #fff;
  text-decoration: underline;
}

/* Mobile Ansicht */
@media (max-width: 768px) {
  .site-grid {
    border: none;
  }

  .container-header .mod-menu {
    flex-direction: column;
    align-items: stretch;
  }

  .container-header .mod-menu > li > a,
  .container-header .mod-menu > li > span {
    display: block;
    padding: 12px 16px;
  }

  .container-component,
  main {
    padding: 18px;
  }

  .container-header .navbar-brand img,
  .container-header .brand-logo img {
    max-height: 90px;
  }
}
.container-header .container-nav,
.container-header .navbar-collapse,
.container-header .mod-menu {
  justify-content: center;
}

.container-header nav {
  margin-left: auto;
  margin-right: auto;
}
.vtv-slider {
  position: relative;
  width: 100%;
  max-width: 1080px;
  height: 420px;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
}

.vtv-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 420px;
  object-fit: cover;
  opacity: 0;
  animation: vtvFade 36s infinite;
}

.vtv-slider img:nth-child(1) { animation-delay: 0s; }
.vtv-slider img:nth-child(2) { animation-delay: 6s; }
.vtv-slider img:nth-child(3) { animation-delay: 12s; }
.vtv-slider img:nth-child(4) { animation-delay: 18s; }
.vtv-slider img:nth-child(5) { animation-delay: 24s; }
.vtv-slider img:nth-child(6) { animation-delay: 30s; }

@keyframes vtvFade {
  0%   { opacity: 0; }
  8%   { opacity: 1; }
  25%  { opacity: 1; }
  33%  { opacity: 0; }
  100% { opacity: 0; }
}

@media (max-width: 768px) {
  .vtv-slider,
  .vtv-slider img {
    height: 160px;
  }
}
/* Logo oben mittig ausrichten */
.container-header .navbar-brand,
.container-header .brand-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.container-header .navbar-brand a,
.container-header .brand-logo a {
    display: flex;
    justify-content: center;
    width: 100%;
}

.container-header .navbar-brand img,
.container-header .brand-logo img {
    display: block;
    margin: 0 auto;
}
.container-header .grid-child:first-child {
    justify-content: center;
}