/* =========================================================
   MSG Sonthofen e.V. – Header + Footer (Cassiopeia)
   VARIANTE: SVG-Logo, schlank
   Datei: media/templates/site/<child-template>/css/user.css
   Mobile-first: Basis = Handy, Erweiterungen per min-width
   ========================================================= */

/* ---------- Standard-Seitentitel "CASSIOPEIA" ausblenden ---------- */

.container-header .grid-child:has(> .navbar-brand),
.container-header .navbar-brand {
  display: none;
}

/* ---------- Logo-Leiste (Modul-Position "topbar") ---------- */

.container-header .container-topbar {
  display: block;
  padding: 0.9rem 1rem 0.4rem;
}

.container-header .container-topbar .mod-custom {
  max-width: 1100px;
  margin: 0 auto;
}

/* Wrapper: Logo + Untertitel zentriert untereinander */
.msg-brand-svg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
}

/* SVG-Logo: schwarz → weiß via Filter, Breite schlanker */
.msg-brand-svg .logo-msg-svg {
  display: block;
  width: clamp(140px, 28vw, 320px);
  height: auto;
  filter: brightness(0) invert(1);
}

/* Untertitel unter dem Logo */
.msg-brand-svg .msg-subline {
  margin: 0;
  font-size: clamp(10px, 2vw, 13px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  padding-left: 30px;
}

/* ---------- Menüleiste ---------- */
.container-header {
    background: #112855 !important;
}
.container-header .container-nav {
  width: 100%;
  max-width: 1250px;
  justify-self: center;
  margin: 0.6rem auto 0;
  padding: 0;
  background: #112855;
  border-radius: 8px;
}

.container-header .navbar {
  padding: 0.3rem 0.75rem;
}

/* Handy/Tablet: Burger-Button mit Beschriftung, Menü untereinander */
@media (max-width: 991.98px) {
  .container-header .navbar-toggler {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 6px;
  }

  .container-header .navbar-toggler::after {
    content: "Menü";
    margin-left: 0.45rem;
    font-size: 0.9rem;
    font-weight: 600;
  }

  .container-header .container-nav .mod-menu {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0.4rem 0 0;
    padding: 0;
    list-style: none;
  }

  .container-header .container-nav .mod-menu > li > a {
    display: block;
    padding: 0.35rem 0.5rem;
    color: #fff;
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 3px solid transparent;
  }

  .container-header .container-nav .mod-menu > li > a:hover,
  .container-header .container-nav .mod-menu > li > a:focus-visible,
  .container-header .container-nav .mod-menu > li > a[aria-current="page"] {
    border-left-color: #ffcc00;
    background: rgba(255, 255, 255, 0.07);
  }
}

/* Desktop: Burger-Button aus, waagerechte Leiste, Akzentlinie unten */
@media (min-width: 992px) {
  .container-header .navbar-toggler {
    display: none;
  }

  .container-header .navbar {
    justify-content: center;
    padding: 0;
  }

  .container-header .container-nav .mod-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    width: auto;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .container-header .container-nav .mod-menu > li > a {
    display: block;
    padding: 0.35rem 0.45rem;
    color: #fff;
    font-size: 0.875rem;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease;
  }

  .container-header .container-nav .mod-menu > li > a:hover,
  .container-header .container-nav .mod-menu > li > a:focus-visible,
  .container-header .container-nav .mod-menu > li > a[aria-current="page"] {
    border-bottom-color: #ffcc00;
    background: rgba(255, 255, 255, 0.07);
  }

  .container-header .container-nav .mod-menu > li > a[aria-current="page"] {
    font-weight: 600;
  }
}

/* =========================================================
   Footer
   ========================================================= */

/* Joomla setzt .container-footer – Bootstrap-Container.
   Wir überschreiben max-width und Padding damit der dunkle
   Hintergrund die volle Breite füllt. */
.container-footer {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: #112855;
  color: #dfe4f5;
}

/* Das grid-child: volle Breite, Inhalt zentrieren */
.container-footer > .grid-child {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* mod-custom im Footer volle Breite */
.container-footer .mod-custom {
  width: 100%;
}

/* Inneres Grid: Kontakt | Training | Partner-Logos
   Auf Desktop drei gleich breite Spalten; auf Handy untereinander */
.msg-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem 2rem;
  align-items: start;
}

@media (min-width: 640px) {
  .msg-footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.msg-footer-col {
  min-width: 0;
}

/* Partner-Logos-Spalte bündig rechts ausrichten */
.msg-footer-partner {
  text-align: left;   /* Überschrift links wie die anderen */
}

/* Überschriften */
.msg-footer-heading {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

/* Kontakt */
.msg-footer-address {
  margin: 0 0 0.5rem;
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #c8d0e8;
}

.msg-footer-contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.msg-footer-contact-list a {
  color: #a8b8e8;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.15s ease;
}

.msg-footer-contact-list a:hover,
.msg-footer-contact-list a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

/* Trainingszeiten */
.msg-footer-training-time {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #c8d0e8;
}

.msg-footer-training-time strong {
  display: block;
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 0.1rem;
}

/* Partner-Logos */
.msg-footer-logos {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.msg-footer-logo {
  display: block;
  height: 60px;
  width: auto;
  max-width: 100%;
  background: #ffffff;
  border-radius: 6px;
  padding: 0.25rem 0.4rem;
  box-sizing: content-box;
  object-fit: contain;
}

/* Rechtliche Zeile */
.msg-footer-legal {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5rem 1rem 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  font-size: 0.82rem;
  color: #6a78a0;
}

.msg-footer-copy {
  white-space: nowrap;
}

.msg-footer-legal-nav {
  display: flex;
  gap: 1.1rem;
}

.msg-footer-legal-nav a {
  color: #6a78a0;
  text-decoration: none;
  transition: color 0.15s ease;
}

.msg-footer-legal-nav a:hover,
.msg-footer-legal-nav a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}
.container-footer > .grid-child {
    padding: 0.5rem 1rem !important;
}
