/* ===== Footer ===== */
.site-footer {
    background: var(--muted);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.6rem 0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(800px, 92vw);
    margin: 0 auto;
}

.footer-links a {
    margin-right: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

.site-footer .footer-links ul {
    list-style-type: none; /* Entfernt die Punkte */
    padding-left: 0;       /* Entfernt die Einrückung der Liste */
    margin: 0;             /* Entfernt den Standard-Margin der Liste */
    display: flex;
    flex-wrap: wrap;       /* Erlaubt den Umbruch der Links bei Bedarf */
    justify-content: center; /* Zentriert die Links im Container */
}

@media (max-width: 600px) {
    /* Stacks the main footer sections vertically */
    .footer-content {
        flex-direction: column;
        gap: 1rem; /* Adjusts space between links and copyright */
    }

    /* --- 1. REORDERING --- */
    /* Moves the entire navigation block to the top */
    .footer-links {
        order: 1;
    }
    /* Moves the copyright text to the bottom */
    .footer-copyright {
        order: 2;
    }


    /* --- 2. TWO-COLUMN LINK GRID --- */
    /* Turns the list of links into a flexible, wrapping container */
    .site-footer .footer-links ul {
        display: flex;
        flex-wrap: wrap; /* Allows items to wrap into multiple lines */
        justify-content: center;
        list-style-type: none;
        padding-left: 0;
        margin: 0;
    }

    /* Each list item (containing a link) takes up 50% of the width */
    .site-footer .footer-links ul li {
        flex: 1 0 50%; /* This creates the two-column layout */
        text-align: center;
        padding: 0.3rem 0; /* Adds some vertical spacing */
    }

    /* Removes any leftover horizontal margins from the links themselves */
    .footer-links a {
        margin: 0;
    }
}

.site-footer .scroll-down-arrow {
    display: none;
}

@media (min-width: 601px) and (max-width: 900px) {
  /* Stellt den Footer-Inhalt (Links und Copyright) vertikal untereinander und zentriert alles */
  .footer-content {
    flex-direction: column; /* Stellt die Links über das Copyright */
    justify-content: center; /* Zentriert die Blöcke vertikal */
    align-items: center;     /* Zentriert die Blöcke horizontal */
    gap: 0.8rem;             /* Abstand zwischen Link-Zeile und Copyright-Zeile */
  }

  /* Stellt sicher, dass die Links in einer einzigen Zeile bleiben */
  .site-footer .footer-links ul {
    flex-wrap: nowrap; /* Verhindert den Umbruch der Links */
  }

  /* Setzt das 2x2-Layout von der mobilen Ansicht zurück */
  .site-footer .footer-links ul li {
    flex: none; /* Hebt die 'flex: 1 0 50%' Regel auf */
    padding: 0;
  }

  /* Stellt den horizontalen Abstand zwischen den Links wieder her */
  .footer-links a {
    margin: 0 0.75rem;
  }
}

/* ===== Bewertungs-Widget im Footer (nutzt dein bestehendes Partial) ===== */

/* Wrapper-Link im Footer kompakt & horizontal */
.site-footer .bewertungs-widget-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  gap: .6rem;
  padding: 0.2rem .2rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: #fff;
  box-shadow: none;
  transform: none;
}

/* Keine Hover-Lift-Effekte im Footer */
.site-footer .bewertungs-widget-link:hover {
  transform: none;
  box-shadow: none;
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.2);
}

/* Der innere Flex-Container */
.site-footer .bewertungs-widget {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: 0; /* im Footer knapper */
}

/* Google-G Logo klein fixieren */
.site-footer .widget-logo svg,
.site-footer .widget-logo img {
  width: 30px;
  height: 30px;
  display: block;
  max-width: none; /* überschreibt globales img { max-width:100% } */
}

/* Titel “Google Bewertung” im Footer */
.site-footer .widget-title {
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  line-height: 1.2;
}

/* Wert + Sterne in einer Reihe */
.site-footer .widget-rating-line {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0; /* knapper */
  justify-content: flex-start;
}

/* Zahl prominent, weiß */
.site-footer .rating-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

/* Sterne gold und klein */
.site-footer .sterne-wrapper {
  display: inline-flex;
  gap: 2px;
}
.site-footer .star-icon {
  width: 14px;
  height: 14px;
  fill: #ffcc41;
}

/* “Basierend auf … Bewertungen” */
.site-footer .widget-count {
  font-size: .74rem;
  color: rgba(255,255,255,.9);
  line-height: 1.3;
}

/* Falls im Partial Bilder/SVGs ohne Klassen vorkommen */
.site-footer .bewertungs-widget-link img,
.site-footer .bewertungs-widget-link svg {
  max-width: none; /* verhindert 100%-Weitung im Footer */
  height: auto;
}

/* Positionierung im Footer */
@media (max-width: 600px) {
  /* Widget ganz oben & zentriert */
  .site-footer .footer-content {
    flex-direction: column;
    align-items: center;
  }
  .site-footer .bewertungs-widget-link {
    order: 0;
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .site-footer .bewertungs-widget {
    justify-content: center;
  }
  .site-footer .footer-links { order: 1; }
  .site-footer .footer-copyright { order: 2; }
}

@media (min-width: 601px) and (max-width: 900px) {
  .site-footer .bewertungs-widget-link { order: 0; }
}


