/* Neuer Footer (Components/Layout/SiteFooter.razor).
   Überschreibt die alten footer-Regeln aus styles.min.css (schwebende Kästen über der Landkarte).
   Farben: WSC-Rot #9b1335, WSC-Grau #92a8a7, Anthrazit #2b2f2f. */

footer.site-footer {
    float: none;
    clear: both;
    display: block;
    width: 100%;
    min-height: 0;
    color: #2b2f2f;
    font-size: 15px;
    line-height: 1.6;
    position: relative;
    z-index: 100;
}

footer.site-footer::after { content: none; }

.site-footer .sf-inner {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.site-footer h2,
.site-footer h3 {
    font-family: 'Helvetica Neue LT W01_77 Bd Cn', 'Helvetica Neue', Arial, sans-serif;
    text-transform: uppercase;
    margin: 0;
}

.site-footer p { margin: 0 0 .5em; }
.site-footer a { color: inherit; text-decoration: none; transition: color .15s, background-color .15s; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li::before { content: none; }
.site-footer li { margin: 0 0 .35em; font-family: inherit; font-size: inherit; text-transform: none; }

/* ---------- Spendenband ---------- */
.site-footer .sf-cta { background: #9b1335; color: #fff; padding: 32px 0; }
.site-footer .sf-cta .sf-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer .sf-cta h2 { font-size: 28px; line-height: 1.1; color: #fff; }
.site-footer .sf-cta p { margin: 6px 0 0; color: #f3dde3; }
.site-footer .sf-cta-buttons { display: flex; flex-wrap: wrap; gap: 10px; }

.site-footer .sf-btn {
    display: inline-block;
    padding: 10px 22px;
    border: 2px solid #fff;
    color: #fff;
    font-family: 'Helvetica Neue LT W01_77 Bd Cn', 'Helvetica Neue', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.site-footer .sf-btn:hover { background: #fff; color: #9b1335; }
.site-footer .sf-btn-primary { background: #fff; color: #9b1335; }
.site-footer .sf-btn-primary:hover { background: transparent; color: #fff; }

/* ---------- Spalten ---------- */
.site-footer .sf-main { background: #eef2f2; padding: 48px 0 40px; }
.site-footer .sf-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
}
.site-footer .sf-col h3 {
    font-size: 14px;
    letter-spacing: .12em;
    color: #6f8584;
    margin-bottom: 14px;
}
.site-footer .sf-main a:hover { color: #9b1335; }
.site-footer .sf-text a { color: #9b1335; }
.site-footer .sf-text a:hover { text-decoration: underline; }
/* Newsletter: Icon groß, darunter zweizeilig in der Headline-Schrift, in Rot */
.site-footer .sf-newsletter {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 26px;
    color: #9b1335;
    font-family: 'Helvetica Neue LT W01_77 Bd Cn', 'Helvetica Neue', Arial, sans-serif;
    font-size: 22px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: .03em;
}
/* viewBox ist auf den Umschlag zugeschnitten, damit Icon und Text als Einheit wirken */
.site-footer .sf-newsletter svg { width: 40px; height: 30px; margin-bottom: 5px; }
.site-footer .sf-main .sf-newsletter:hover { color: #2b2f2f; }

.site-footer .sf-brand > a { display: block; width: fit-content; }
.site-footer .sf-logo-wsc { height: 64px; width: auto; display: block; margin-bottom: 18px; }
.site-footer .sf-logo-vetmed { height: 30px; width: auto; display: block; margin-bottom: 14px; }
.site-footer .sf-brand .sf-text { color: #5f6b6b; font-size: 14px; }

/* Social Media: runde Flächen in WSC-Grau, Icon weiß, beim Darüberfahren rot */
.site-footer .sf-social { display: flex; gap: 12px; }
.site-footer .sf-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #92a8a7;
    color: #fff;
}
.site-footer .sf-social svg { width: 22px; height: 22px; display: block; }
.site-footer .sf-main .sf-social a:hover { background: #9b1335; color: #fff; }

/* ---------- Rechtliches ---------- */
.site-footer .sf-bottom { background: #2b2f2f; color: #c9d4d3; padding: 14px 0; font-size: 13px; position: relative; }
.site-footer .sf-bottom .sf-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-right: 96px; }
.site-footer .sf-bottom .sf-legal { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer .sf-bottom a:hover { color: #fff; }

/* "Nach oben": runder Button auf der Kante zwischen Spalten und dunkler Leiste,
   bündig mit dem rechten Inhaltsrand. Beim Darüberfahren hebt er sich, der Pfeil wippt nach oben. */
.site-footer .scroll-to-top {
    position: absolute;
    top: -28px;
    right: max(20px, calc((100% - 1200px) / 2 + 20px));
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 50%;
    border: 4px solid #eef2f2;
    background: #9b1335;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(43, 47, 47, .18);
    transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.site-footer .scroll-to-top::before {
    position: static;
    font-size: 20px;
    line-height: 1;
    color: #fff;
    transition: transform .25s ease;
}
.site-footer .scroll-to-top:hover,
.site-footer .scroll-to-top:focus-visible {
    transform: translateY(-6px);
    background: #7d0f2b;
    box-shadow: 0 10px 20px rgba(43, 47, 47, .25);
    outline: none;
}
.site-footer .scroll-to-top:hover::before,
.site-footer .scroll-to-top:focus-visible::before {
    animation: sf-nudge-up .7s ease-in-out infinite alternate;
}

@keyframes sf-nudge-up {
    from { transform: translateY(1px); }
    to   { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer .scroll-to-top { transition: none; }
    .site-footer .scroll-to-top:hover { transform: none; }
    .site-footer .scroll-to-top:hover::before,
    .site-footer .scroll-to-top:focus-visible::before { animation: none; }
}

/* ---------- Tablet und Handy ---------- */
@media (max-width: 1000px) {
    .site-footer .sf-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 600px) {
    .site-footer .sf-cta { padding: 26px 0; }
    .site-footer .sf-cta h2 { font-size: 24px; }
    .site-footer .sf-cta-buttons { width: 100%; }
    .site-footer .sf-btn { flex: 1 1 auto; text-align: center; }
    .site-footer .sf-grid { grid-template-columns: 1fr; gap: 28px; }
    .site-footer .sf-bottom .sf-inner { flex-direction: column; }
}
