/* ===========================
   Grundlayout für Body/Main/Footer
   =========================== */
html, body {
  height: 100%;
  margin: 0;
}

:root {
  --header-height: 60px; /* Standardhöhe Header */
}

@media (max-width: 780px) {
  :root {
    --header-height: 80px; /* höhere Headerhöhe im Handy-Modus */
  }
}

/* Platz für den fixed Header schaffen */
body {
  display: flex;
  flex-direction: column;
  padding-top: var(--header-height);
  box-sizing: border-box;
}

/* Wrapper für Inhalt + Footer */
.page {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
}

/* Hauptbereich */
.page main {
  flex: 1; /* füllt den Platz zwischen Header und Footer */
}

/* ===========================
   Footer
   =========================== */
.site-footer {
  width: 100%;
  background: linear-gradient(
    to right,
    var(--color-footer-left),
    var(--color-footer-right)
  );
  color: var(--color-footertext);
  padding: 0.5rem 0.5rem;
  box-sizing: border-box;
  margin-top: auto; /* Footer rutscht ans Ende */
  z-index: 9999;
}

.site-footer .footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.site-footer .footer-copy {
  margin: 0;
  color: var(--color-footertext);
  font-weight: bold;
}

/* NEU: Link im Copyright-Bereich */
.site-footer .footer-copy a {
  color: var(--color-footertext);   /* gleiche Farbe wie Text */
  text-decoration: none;            /* keine blaue Unterstreichung */
  font-weight: bold;                /* konsistent mit anderen Links */
}

.site-footer .footer-copy a:hover {
  text-decoration: underline;       /* identischer Hover-Effekt */
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
}

.site-footer .footer-links a {
  color: var(--color-footertext);
  text-decoration: none;
  margin-left: 15px;
  font-weight: bold;
  white-space: nowrap;
}

.site-footer .footer-links a:hover {
  text-decoration: underline;
}
