/* ============================================
   Stadtmusik Bad Lausick - Stadtfest Theme
   ============================================ */

/* -- Custom Properties -- */
:root {
  --sm-blue: #1e5fa8;
  --sm-blue-light: #2d7ad4;
  --sm-blue-dark: #0f3a6b;
  --sm-blue-mid: #1a3a5c;
  --sm-yellow: #d4c020;
  --sm-yellow-light: #e8d84e;
  --sm-yellow-dark: #a89800;
  --sm-bg-dark: #0c1e33;
  --sm-bg-warm: #f8f3e4;
  --sm-bg-warm2: #eee8d4;
  --sm-text: #2c2c2c;
  --sm-text-muted: #6b6b6b;
  --sm-radius: 12px;
  --sm-radius-sm: 6px;
  --sm-gap: 20px;
  --sm-section-pad: 48px 40px;
}


/* ══════════════════════════════════════
   HEADER (logo left, nav right, one line)
   ══════════════════════════════════════ */

.container-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 40px;
}

.site-logo img {
  max-height: 55px;
  width: auto;
}

.site-description {
  margin: 0;
  font-size: 11px;
  opacity: 0.5;
}

/* Put header brand and nav on the same row */
.container-header .site-brand {
  flex-shrink: 0;
}

.container-nav {
  padding: 0 40px;
  background: transparent;
}

/* If Cassiopeia puts nav in a separate container, merge visually */
header.header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 16px !important;
    flex-wrap: nowrap !important;
  }

header.header .container-header {
  padding: 10px 0;
  flex: 0 0 auto;
}

header.header .container-nav {
  padding: 0;
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

header.header .container-nav .navbar,
header.header .container-nav nav {
  margin-left: auto;
}


/* Dropdown menu: prevent overflow on right edge */
.container-nav .metismenu li:last-child .mm-collapse,
.container-nav .metismenu li:nth-last-child(-n+2) .mm-collapse {
  right: 0;
  left: auto;
}

/* ══════════════════════════════════════
   HERO SECTION (Leading Article)
   ══════════════════════════════════════ */

.sm-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 420px;
  background: linear-gradient(135deg, var(--sm-bg-dark) 0%, var(--sm-blue-mid) 100%);
  overflow: hidden;
  border-radius: var(--sm-radius);
  margin: 20px;
}

.sm-hero__text {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sm-hero__label {
  display: inline-block;
  background: var(--sm-yellow);
  color: var(--sm-bg-dark);
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 18px;
  border-radius: var(--sm-radius-sm);
  width: fit-content;
}

.sm-hero__title {
  font-size: 2.2rem;
  color: #fff !important;
  line-height: 1.15;
  margin-bottom: 14px;
}

.sm-hero__meta {
  color: rgba(255,255,255,0.55);
  font-size: 1rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.sm-hero__meta strong {
  color: var(--sm-yellow-light);
  font-weight: 600;
}

.sm-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.sm-hero__poster {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.12);
  overflow: hidden;
}

.sm-hero__poster img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 16px;
  transition: transform 0.3s ease;
}

.sm-hero__poster:hover img {
  transform: scale(1.02);
}

.sm-hero__poster--empty {
  font-size: 4rem;
  opacity: 0.2;
}


/* ══════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════ */

.sm-btn-primary {
  display: inline-block;
  background: var(--sm-yellow);
  color: var(--sm-bg-dark);
  padding: 12px 28px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: var(--sm-radius-sm);
  transition: all 0.2s;
}

.sm-btn-primary:hover {
  background: var(--sm-yellow-light);
  color: var(--sm-bg-dark);
  transform: translateY(-1px);
  text-decoration: none;
}


/* ══════════════════════════════════════
   INFO STRIP
   ══════════════════════════════════════ */

.sm-info-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sm-gap);
  background: transparent;
  border-bottom: none;
  padding: 20px;
}

.sm-info-item {
  padding: 22px 28px;
  text-align: center;
  background: var(--sm-bg-warm);
  text-decoration: none !important;
  color: inherit !important;
  transition: background 0.2s, transform 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--sm-bg-warm2);
  border-radius: var(--sm-radius);
}

.sm-info-item:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border-color: #ddd;
}

.sm-info-icon {
  font-size: 20px;
  margin-bottom: 6px;
}

.sm-info-item strong {
  display: block;
  font-size: 14px;
  color: var(--sm-blue-dark);
}

.sm-info-item span {
  font-size: 13px;
  color: var(--sm-text-muted);
}

.sm-info-item:hover strong {
  color: var(--sm-blue);
}


/* ══════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════ */

.sm-section {
  padding: var(--sm-section-pad);
}

.sm-section--alt {
  background: transparent;
}

.sm-section__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
}

.sm-section__title {
  font-size: 1.5rem;
  color: var(--sm-blue-dark) !important;
}

.sm-section__link {
  font-size: 13px;
  color: var(--sm-yellow-dark);
  text-decoration: none;
  font-weight: 600;
}

.sm-section__link:hover {
  text-decoration: underline;
}


/* ══════════════════════════════════════
   CARD GRID (Intro Articles)
   ══════════════════════════════════════ */

.sm-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sm-gap);
}

.sm-card {
  border: 1px solid #e0e0e0;
  border-radius: var(--sm-radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit !important;
  background: #fff;
}

.sm-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.sm-card__poster {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--sm-bg-warm2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sm-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sm-card__poster--empty {
  font-size: 2rem;
  opacity: 0.3;
}

.sm-card__body {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sm-card__date {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.sm-card__date-badge {
  background: var(--sm-blue);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--sm-radius-sm);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.sm-card__date-year {
  font-size: 12px;
  color: var(--sm-text-muted);
}

.sm-card__title {
  font-size: 1.05rem;
  color: var(--sm-blue-dark) !important;
  margin-bottom: 6px;
  line-height: 1.3;
}

.sm-card__intro {
  font-size: 13px;
  color: var(--sm-text-muted);
  line-height: 1.5;
  flex: 1;
}

.sm-card__more {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sm-yellow-dark);
}

.sm-card:hover .sm-card__more {
  text-decoration: underline;
}

/* -- Past events: greyed out -- */
.sm-hero--past {
  opacity: 0.75;
}

.sm-hero__label--past {
  background: var(--sm-text-muted);
}

.sm-hero__past-note {
  color: rgba(255,255,255,0.35);
  font-weight: 400;
  font-size: 0.9rem;
}

.sm-card--past {
  opacity: 0.7;
}

.sm-card__date-badge--past {
  background: var(--sm-text-muted);
}

.sm-card__date-badge--pending {
  background: var(--sm-text-muted);
}

.sm-card__date-past {
  font-size: 11px;
  color: var(--sm-text-muted);
  font-style: italic;
}
/* ══════════════════════════════════════
   BOTTOM-A: Equal-height modules side by side
   ══════════════════════════════════════ */

.container-bottom-a {
  padding: 0 20px 20px;
}

.container-bottom-a > .grid-child {
  display: flex;
}

.container-bottom-a > .grid-child > .card {
  border: none;
  background: transparent;
  box-shadow: none;
  flex: 1;
  display: flex;
}

.container-bottom-a > .grid-child > .card > .card-body {
  flex: 1;
  display: flex;
  padding: 0;
}


/* ══════════════════════════════════════
   AUDIO CARD (Hörproben)
   ══════════════════════════════════════ */

.sm-audio-card {
  background: var(--sm-blue-mid) !important;
  border-radius: var(--sm-radius);
  padding: 32px;
  color: #fff;
  flex: 1;
}

.sm-audio-card h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
  color: #fff !important;
}

.sm-audio-sub {
  font-size: 14px;
  opacity: 0.45;
  margin-bottom: 20px;
}

.sm-audio-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sm-audio-item {
  background: rgba(255,255,255,0.07);
  border-radius: calc(var(--sm-radius) - 4px);
  overflow: hidden;
  cursor: pointer;
  transition: background 0.2s;
}

.sm-audio-item:hover {
  background: rgba(255,255,255,0.12);
}

.sm-audio-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}

.sm-audio-play {
  width: 36px;
  height: 36px;
  background: var(--sm-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--sm-bg-dark);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.sm-audio-item.open .sm-audio-play {
  transform: rotate(90deg);
}

.sm-audio-label {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  flex: 1;
}

.sm-audio-type {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

.sm-audio-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 16px;
}

.sm-audio-item.open .sm-audio-body {
  max-height: 400px;
  padding: 0 16px 16px;
}

.sm-audio-body video {
  border-radius: calc(var(--sm-radius) - 4px);
  width: 100%;
}


/* ══════════════════════════════════════
   CTA CARD (Mitspielen)
   ══════════════════════════════════════ */

.sm-cta-card {
  background: var(--sm-bg-warm);
  border-radius: var(--sm-radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  border: 1px solid var(--sm-bg-warm2);
}

.sm-cta-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.sm-cta-card h3 {
  font-size: 1.25rem;
  color: var(--sm-blue-dark) !important;
  margin-bottom: 8px;
}

.sm-cta-card p {
  font-size: 15px;
  color: var(--sm-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}


/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.container-footer {
  padding: 0 40px;
}

.sm-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.sm-footer__col h4 {
  color: var(--sm-yellow);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.sm-footer__col p {
  line-height: 1.6;
}

.sm-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sm-footer__col a {
  color: rgba(255,255,255,0.45) !important;
  text-decoration: none;
}

.sm-footer__col a:hover {
  color: var(--sm-yellow) !important;
}

.sm-footer__sponsors img {
  border-radius: var(--sm-radius-sm);
  background: #fff;
  padding: 8px;
  width: 100%;
  max-width: 280px;
}

.sm-footer__bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  opacity: 0.5;
}


/* ══════════════════════════════════════
   HIDE DEFAULT JOOMLA BLOG ELEMENTS
   ══════════════════════════════════════ */

.sm-blog .com-content-category-blog__items.items-leading {
  margin: 0;
  padding: 0;
}

.sm-blog .page-header {
  display: none;
}

.sm-blog .com-content-category-blog__navigation {
  display: none;
}


/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 992px) {
  .site-logo img {
    max-height: 45px;
  }
  .site-description {
    font-size: 10px;
  }
  .sm-hero {
    grid-template-columns: 1fr;
    height: auto;
    margin: 12px;
  }
  .sm-hero__poster {
    min-height: 250px;
  }
  .sm-hero__text {
    padding: 32px 24px;
  }
  .sm-hero__title {
    font-size: 1.8rem;
  }
  .sm-card-grid {
    grid-template-columns: 1fr;
  }
  .sm-section {
    padding: 32px 20px;
  }
  .sm-info-strip {
    grid-template-columns: 1fr;
  }
  .sm-footer {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 20px;
  }
  .container-bottom-a {
    padding: 0 12px 12px;
  }
}

@media (min-width: 577px) and (max-width: 992px) {
  .sm-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}