/* ==========================================================================
   KOBIL — Footer
   ========================================================================== */

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 46px;
  width: 100%;
  padding: 64px 40px;
  background: var(--white);
  border-radius: var(--radius-sm);
}

/* ---- Top: Logo + Spalten ---- */

.site-footer__top {
  display: flex;
  align-items: flex-start;
  gap: 126px;
  width: 100%;
}

.site-footer__logo {
  flex: 0 0 auto;
  display: inline-block;
  border-radius: 4px;
}

.site-footer__logo img {
  width: 106px;
  height: auto;
}

.site-footer__context {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 70px;
}

/* ---- Link-Spalten ---- */

.site-footer__menu {
  display: flex;
  align-items: flex-start;
  gap: 56px;
  width: 100%;
}

.site-footer__col--company {
  width: 95px;
  flex: 0 0 auto;
}

.site-footer__col--products {
  width: 127px;
  flex: 0 0 auto;
}

.site-footer__col--solutions {
  width: 98px;
  flex: 0 0 auto;
}

.site-footer__col-title {
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: var(--navy);
}

/* Akkordeon-Toggle: nur auf Mobile sichtbar */
.site-footer__col-toggle {
  display: none;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.site-footer__list li {
  display: flex;
}

.site-footer__link {
  display: inline-block;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--navy-80);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

a.site-footer__link:hover,
a.site-footer__link:focus-visible {
  color: var(--navy);
}

/* "AI Trust — Soon..." */

.site-footer__item--soon {
  position: relative;
  height: 21px;
}

.site-footer__soon {
  position: absolute;
  top: -4px;
  left: 51.5px;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
  background: linear-gradient(
    90deg,
    #3ebffc 13.354%,
    #2962f6 32.357%,
    #696ef5 59.145%,
    #ca80f4 84.827%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Bottom-Zeile: CTAs, Kontakt, Social ---- */

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.site-footer__actions {
  display: flex;
  align-items: center;
  gap: 60px;
}

.site-footer__ctas {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* CTA-Buttons mit abgeschraegter Ecke (SVG-Maske) */

.site-footer__btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 4px 20px 4px 16px;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
  border-radius: 4px;
}

.site-footer__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transition: background-color var(--dur) var(--ease);
}

.site-footer__btn--blue {
  color: var(--white);
}

.site-footer__btn--blue::before {
  background: var(--blue);
  -webkit-mask:
    url("../../assets/footer/btn-blue-left.svg") left top / calc(100% - 40px) 100% no-repeat,
    url("../../assets/footer/btn-blue-right.svg") right top / 67px 100% no-repeat;
  mask:
    url("../../assets/footer/btn-blue-left.svg") left top / calc(100% - 40px) 100% no-repeat,
    url("../../assets/footer/btn-blue-right.svg") right top / 67px 100% no-repeat;
}

.site-footer__btn--blue:hover::before {
  background: #1e4fd6;
}

.site-footer__btn--light {
  color: var(--navy);
}

.site-footer__btn--light::before {
  background: var(--navy-30);
  -webkit-mask:
    url("../../assets/footer/btn-light-left.svg") left top / calc(100% - 40px) 100% no-repeat,
    url("../../assets/footer/btn-light-right.svg") right top / 67px 100% no-repeat;
  mask:
    url("../../assets/footer/btn-light-left.svg") left top / calc(100% - 40px) 100% no-repeat,
    url("../../assets/footer/btn-light-right.svg") right top / 67px 100% no-repeat;
}

.site-footer__btn--light:hover::before {
  background: var(--navy-40);
}

.site-footer__btn img {
  transition: transform var(--dur) var(--ease);
}

.site-footer__btn:hover img {
  transform: translateX(3px);
}

/* Kontakt */

.site-footer__contact {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-footer__contact-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--navy-80);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.site-footer__contact-item:hover,
.site-footer__contact-item:focus-visible {
  color: var(--navy);
}

.site-footer__contact-item img {
  flex: 0 0 auto;
}

/* Social */

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 11px;
}

.site-footer__social-link {
  display: inline-flex;
  border-radius: 4px;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.site-footer__social-link:hover,
.site-footer__social-link:focus-visible {
  opacity: 0.65;
}

/* ---- Trennlinie ---- */

.site-footer__divider {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--navy-30);
}

/* ---- Legal-Zeile ---- */

.site-footer__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 28px;
  width: 100%;
}

.site-footer__made {
  display: flex;
  align-items: stretch;
  flex: 0 0 auto;
}

.site-footer__flag {
  width: 5px;
  height: 28px;
  background: linear-gradient(
    180deg,
    #000 0%,
    #000 33.33%,
    #da0300 33.33%,
    #da0300 66.66%,
    #fccb02 66.66%,
    #fccb02 100%
  );
}

.site-footer__made-text {
  margin-left: 5px;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 14px;
  color: #161616;
  white-space: nowrap;
}

.site-footer__made-text strong {
  font-weight: 700;
}

.site-footer__privacy {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  color: var(--navy-80);
}

.site-footer__copyright {
  white-space: nowrap;
}

.site-footer__privacy-links {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.site-footer__privacy-links a {
  transition: color 0.2s var(--ease);
}

.site-footer__privacy-links a:hover,
.site-footer__privacy-links a:focus-visible {
  color: var(--navy);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1280px) {
  .site-footer__top {
    gap: 64px;
  }

  .site-footer__menu {
    flex-wrap: wrap;
    gap: 40px 48px;
  }

  .site-footer__actions {
    gap: 40px;
  }
}

@media (max-width: 1024px) {
  .site-footer__top {
    flex-direction: column;
    gap: 40px;
  }

  .site-footer__context {
    width: 100%;
    gap: 56px;
  }

  .site-footer__menu {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 32px;
  }

  .site-footer__col--company,
  .site-footer__col--products,
  .site-footer__col--solutions {
    width: auto;
  }

  .site-footer__bottom {
    flex-wrap: wrap;
    row-gap: 24px;
  }

  .site-footer__actions {
    flex-wrap: wrap;
    row-gap: 20px;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 48px 24px;
    gap: 36px;
  }

  .site-footer__menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__link {
    white-space: normal;
  }

  .site-footer__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
  }

  .site-footer__contact {
    flex-wrap: wrap;
    gap: 16px 24px;
  }

  .site-footer__legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .site-footer__privacy {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px 12px;
  }
}

/* ---- Mobile (Figma "footer/mobile", 3577:34400) ---- */

@media (max-width: 480px) {
  .site-footer {
    padding: 32px 24px 24px;
    gap: 48px;
    border-radius: 6px;
  }

  .site-footer__top {
    gap: 48px;
  }

  .site-footer__logo img {
    width: 116px;
  }

  .site-footer__context {
    gap: 48px;
  }

  /* Spalten als Akkordeon-Zeilen */

  .site-footer__menu {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .site-footer__col {
    width: 100%;
  }

  .site-footer__col-title {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0;
    font-family: var(--font-ui);
    font-weight: 700;
    line-height: 16px;
  }

  .site-footer__col-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }

  /* Ganze Titelzeile als Tap-Fläche */
  .site-footer__col-toggle::after {
    content: "";
    position: absolute;
    inset: -10px 0;
  }

  .site-footer__col-toggle img {
    display: block;
    transition: transform var(--dur) var(--ease);
  }

  .site-footer__col.is-open .site-footer__col-toggle img {
    transform: rotate(180deg);
  }

  .site-footer__list {
    display: none;
    margin-top: 20px;
    gap: 12px;
  }

  .site-footer__col.is-open .site-footer__list {
    display: flex;
  }

  .site-footer__link {
    font-family: var(--font-ui);
    line-height: 16px;
  }

  /* CTAs nebeneinander, Kontakt darunter, Social zentriert */

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 48px;
  }

  .site-footer__actions {
    gap: 48px;
    width: 100%;
  }

  .site-footer__ctas {
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Beide Buttons nebeneinander: etwas kompaktere Innenabstaende */
  .site-footer__btn {
    padding: 4px 14px 4px 12px;
    gap: 7px;
  }

  .site-footer__contact-item {
    gap: 6px;
  }

  .site-footer__social {
    width: 100%;
    justify-content: center;
    gap: 20px;
  }

  /* Reihenfolge wie im Mobile-Design: LinkedIn, Instagram, Medium, YouTube */
  .site-footer__social-link:nth-child(1) {
    order: 2;
  }

  .site-footer__social-link:nth-child(2) {
    order: 1;
  }

  .site-footer__social-link:nth-child(3) {
    order: 3;
  }

  .site-footer__social-link:nth-child(4) {
    order: 4;
  }

  /* Legal: "Engineered in Germany" zentriert ueber der Trennlinie */

  .site-footer__divider {
    display: none;
  }

  .site-footer__legal {
    align-items: center;
    gap: 54px;
  }

  .site-footer__privacy {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding-top: 31px;
    border-top: 1px solid var(--navy-30);
    font-family: var(--font-ui);
    font-size: 14px;
    line-height: 16px;
  }

  .site-footer__copyright {
    text-align: center;
  }

  .site-footer__privacy-links {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 4px;
    line-height: 24px;
    white-space: normal;
  }

  /* Zweiter Trenner faellt weg, damit "Responsible Disclosure" allein umbricht */
  .site-footer__privacy-links > span:nth-of-type(2) {
    display: none;
  }
}
