/* Footer (Feedback 12.11., Aufbau aus crawl/clean_hooks/footer.py).
   Desktop ab 1080px: vier Spalten über die volle Breite (Marke, Unternehmen, Service, Hinweis), Tablet: Marke als Zeile,
   darunter drei Spalten, Handy: Marke, zwei Linkspalten nebeneinander, Hinweis. Social-Buttons in Markengrün wie die
   primären Buttons, 44px Tippfläche. Unten Copyright und "Nach oben". */
#footer { padding: 0; min-height: 0; font-size: 17px; background-color: #ebebeb; }
/* dunkler 20px-Streifen unter dem Footer (style.min.css: body border-bottom), passend zur schon entfernten Linie oben */
body { border-bottom: 0; }
#footer .tg-fuss { padding-top: 40px; padding-bottom: 20px; }
#footer .tg-fuss-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
#footer .tg-fuss-marke, #footer .tg-fuss-hinweis { grid-column: 1 / -1; }

/* Spaltentitel */
#footer .tg-fuss-titel { margin: 0 0 10px; padding: 0; font-size: 14px; line-height: 1.3; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: #2b2b2a; }

/* Marke */
#footer .tg-fuss-logo { display: inline-block; margin: 0 0 22px; }
#footer .tg-fuss-logo img { display: block; width: 180px !important; max-width: 100%; height: auto; }   /* !important: style.min.css 750-950px */
#footer .tg-fuss-social { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
#footer .tg-fuss-social li { margin: 0; padding: 0; list-style: none; }
#footer .tg-fuss-social li::before { content: none; }
#footer .tg-fuss-social a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 4px; background: var(--tg-gruen, #004e2d); color: #fff; text-decoration: none;
  transition: background-color .2s ease-out, transform .2s ease-out; }
#footer .tg-fuss-social a:hover { background: var(--tg-gruen-hover, #00693c); color: #fff; transform: translateY(-2px); }
#footer .tg-fuss-social svg { display: block; width: 20px; height: 20px; }
#footer .tg-fuss-cta { margin-top: 24px; }
html #footer .tg-fuss-cta a.tg-btn.tg-btn { font-size: 18px; min-height: 48px; padding: 10px 20px; }

/* Linklisten */
#footer .tg-fuss-links { margin: 0; padding: 0; list-style: none; }
#footer .tg-fuss-links li { margin: 0; padding: 0; list-style: none; }
#footer .tg-fuss-links li::before { content: none; }
#footer .tg-fuss-links a { display: inline-block; padding: 10px 0; color: #4b4b4a; line-height: 1.3; text-decoration: none; }
#footer .tg-fuss-links a:hover { color: var(--tg-gruen, #004e2d); text-decoration: underline; text-underline-offset: 3px; }

/* Hinweis */
#footer .tg-fuss-hinweis p { margin: 0 0 10px; font-size: 15px; line-height: 1.45; color: #5b5b5a; }
#footer .tg-fuss-hinweis p:last-child { margin-bottom: 0; }

/* Unterste Zeile */
#footer .tg-fuss-unten { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px;
  margin-top: 32px; padding-top: 8px; border-top: 1px solid #d2d2d1; font-size: 15px; color: #5b5b5a; }
#footer .tg-fuss-unten p { margin: 0; }
#footer .tg-fuss-hoch { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: #4b4b4a; text-decoration: none; }
#footer .tg-fuss-hoch:hover { color: var(--tg-gruen, #004e2d); text-decoration: underline; text-underline-offset: 3px; }
#footer .tg-fuss-hoch svg { display: block; }

#footer .tg-fuss a:focus-visible { outline: 3px solid var(--tg-fokus, #ee7f00); outline-offset: 2px; border-radius: 2px; }

@media (max-width: 359px) {
  #footer .tg-fuss-raster { grid-template-columns: minmax(0, 1fr); }
}

/* Tablet: Marke als Zeile (Logo, Social, Button), darunter Unternehmen, Service, Hinweis */
@media (min-width: 750px) {
  #footer .tg-fuss { padding-top: 48px; }
  #footer .tg-fuss-raster { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.4fr); column-gap: 40px; }
  #footer .tg-fuss-hinweis { grid-column: auto; }
  #footer .tg-fuss-marke { display: grid; grid-template-columns: auto auto 1fr; grid-template-areas: "logo titel cta" "logo social cta";
    column-gap: 48px; align-items: center; }
  #footer .tg-fuss-logo { grid-area: logo; margin: 0; }
  #footer .tg-fuss-marke .tg-fuss-titel { grid-area: titel; align-self: end; }
  #footer .tg-fuss-social { grid-area: social; }
  #footer .tg-fuss-cta { grid-area: cta; justify-self: end; margin: 0; }
}

/* Desktop: vier Spalten über die volle Breite; unten Platz für die feste Service-Leiste (82px) */
@media (min-width: 1080px) {
  #footer .tg-fuss { padding-top: 56px; padding-bottom: 104px; }
  #footer .tg-fuss-raster { grid-template-columns: minmax(220px, 1fr) minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, 1.3fr); column-gap: 56px; }
  #footer .tg-fuss-marke { grid-column: auto; display: block; }
  #footer .tg-fuss-logo { margin: 0 0 24px; }
  #footer .tg-fuss-cta { margin-top: 28px; justify-self: auto; }   /* justify-self gilt in Chrome auch im Blocklayout */
  #footer .tg-fuss-links a { padding: 5px 0; }
  #footer .tg-fuss-titel { margin-bottom: 12px; }
  #footer .tg-fuss-unten { margin-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  #footer .tg-fuss-social a { transition: none; }
  #footer .tg-fuss-social a:hover { transform: none; }
}
