/* ==========================================================================
   Footer-Sitemap — aufklappbare Stadt/Page-Sitemap — funktionaler Layer.
   Slide-Mechanik (max-height + padding transition), Container-Width,
   Multi-Column-Grid-Layout (Definition + Reset-Listen), Chevron-Pseudo-Element-
   Pattern (border-trick + rotate).
   ========================================================================== */

.footer-sitemap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.footer-sitemap.is-open {
  max-height: 6000px;
}

.footer-sitemap__inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.footer-sitemap__groups {
  display: grid;
}

.footer-sitemap__list,
.footer-sitemap__cities {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-sitemap__cities {
  display: grid;
}

.footer-sitemap__item {
  display: flex;
  align-items: center;
}

.footer-sitemap__item a {
  text-decoration: none;
  transition: color var(--transition);
}

.footer-sitemap__chevron {
  transform: rotate(-45deg);
  flex-shrink: 0;
}
/* ==========================================================================
   Footer-Sitemap — r2go4 visueller Layer.
   Background, Spacings, Grid-Proportionen (4 spalt Desktop, responsive Mobile),
   Heading-Typografie, Chevron-Größe + Brand-Farbe, Link-Hover.
   ========================================================================== */

.footer-sitemap {
  background: var(--color-white);
}

.footer-sitemap.is-open {
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-sitemap__inner {
  padding-inline: 0;
}

@media (max-width: 1240px) {
  .footer-sitemap__inner { padding-inline: var(--content-edge-tablet); }
}

@media (max-width: 767px) {
  .footer-sitemap__inner { padding-inline: var(--content-edge-mobile); }
}

.footer-sitemap__city {
  margin-bottom: var(--space-lg);
}

.footer-sitemap__city:last-child {
  margin-bottom: 0;
}

/* h3-Variante "Footer-Stadt" — designed-Größe (1.4rem) für Footer-Sitemap.
   Typo (font-family/weight/color) aus base.css. */
.footer-sitemap__city-title {
  font-size: 1.4rem;
  margin: 0 0 var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--color-primary);
}

.footer-sitemap__city-title a {
  color: var(--color-text-dark);
  text-decoration: none;
}

.footer-sitemap__city-title a:hover {
  color: var(--color-primary-dark);
}

.footer-sitemap__groups {
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md) var(--space-lg);
}

@media (max-width: 1199px) {
  .footer-sitemap__groups { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .footer-sitemap__groups { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 479px) {
  .footer-sitemap__groups { grid-template-columns: 1fr; }
}

/* Footer-Group-Title — designed-Klasse (div, kein h-Tag). */
.footer-sitemap__group-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-sitemap__cities {
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem var(--space-md);
}

@media (max-width: 991px) {
  .footer-sitemap__cities { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .footer-sitemap__cities { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 479px) {
  .footer-sitemap__cities { grid-template-columns: 1fr; }
}

.footer-sitemap__item {
  gap: var(--space-xs);
  padding: 0.2rem 0;
}

.footer-sitemap__item a {
  color: var(--color-text);
  font-size: 0.9rem;
  line-height: 1.4;
}

.footer-sitemap__item a:hover {
  color: var(--color-primary-dark);
}

.footer-sitemap__chevron {
  width: 5px;
  height: 5px;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
}
