/* Footer 1:1 aus rudadesign.ch/css/styles.css uebernommen.
   Abweichungen sind unten im Abschnitt "Ergaenzungen" einzeln aufgefuehrt. */

:root {
  --red: #e3001f;
  --red-dark: #9b0015;
  --primary: var(--red);
  --red-hover: var(--red-dark);
  --red-glow: rgba(227, 0, 31, 0.55);
  --red-soft: rgba(227, 0, 31, 0.18);
  --white: #ffffff;
  --grey: rgba(255, 255, 255, 0.55);
  --grey-light: rgba(255, 255, 255, 0.08);
  --bg: #080a0d;
  --bg-section: #0c0e12;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.1);
  --radius: 14px;
}

footer {
  background: #050709;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0;
  width: 100%;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 56px 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);

  @media (max-width: 1024px) {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 40px 24px 32px;
  }

  @media (max-width: 480px) {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
.footer-brand {
  @media (max-width: 480px) {
    display: flex;
    flex-direction: column;
    align-items: center;

    & .logo {
      justify-content: center;
    }
  }
}
.footer-brand-desc {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.7;
  margin-top: 14px;
  max-width: 240px;

  @media (max-width: 480px) {
    margin-left: auto;
    margin-right: auto;
  }
}
.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;

  & a {
    color: var(--grey);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;

    &:hover {
      color: var(--red);
    }
  }

  @media (max-width: 480px) {
    align-items: center;
  }
}
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;

  @media (max-width: 480px) {
    justify-content: center;
  }
}
.social-link {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition:
    background 0.2s,
    border-color 0.2s;

  & svg {
    width: 16px;
    height: 16px;
    fill: var(--grey);
  }

  &:hover {
    background: var(--red-soft);
    border-color: rgba(227, 0, 31, 0.4);

    & svg {
      fill: var(--red);
    }
  }
}
.footer-bottom-bottom {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #000000;

  & p {
    margin: 0;
    line-height: 1.5;
    font-size: clamp(8px, 2.8vw, 16px);
    white-space: nowrap;
  }

  & a {
    color: inherit;
    text-decoration: none;

    &:hover,
    &:focus-visible {
      text-decoration: underline;
    }
  }
}
.flag-1rem {
  height: 1rem;
  width: auto;
  vertical-align: -5px;
  border-radius: 2px;
  display: inline-block;
  margin: 0 0.25rem;
}

/* ---- Ergaenzungen fuer test.rudadesign.ch ---- */
/* Im Original hat .logo und .logo-icon KEINE CSS-Regel. Das SVG wuerde
   in seiner Eigengroesse rendern. Hier begrenzt. */
footer .logo { display: flex; align-items: center; gap: .7rem;
               text-decoration: none; color: var(--white); }
footer .logo-icon img { width: 42px; height: auto; display: block; }
footer .logo-text { display: flex; flex-direction: column; line-height: 1.25; }
footer .logo-name { font-weight: 700; }
footer .logo-sub, footer .logo-sub-2 { font-size: 12px; color: var(--grey); }
/* Im Original steht die Schriftfarbe in der globalen body-Regel
   (color: var(--white)). Die wurde hier nicht uebernommen, weil die
   Werkzeugseiten hell sind. Deshalb fuer den Footer eigens gesetzt -
   sonst steht schwarzer Text auf fast schwarzem Grund. */
footer { color: var(--white); }

/* Die Werkzeugseiten sind hell, der Footer ist dunkel. Klare Trennkante. */
footer { margin-top: 3rem; }
