/* ============================================================
   Gemeinsamer Footer fuer ALLE Seiten (Vorgabe 2026-08-11)

   Diese Datei wird auf jeder Seite als LETZTES Stylesheet geladen
   und ist damit die einzige Quelle fuer das Footer-Aussehen.
   Sie ueberschreibt bewusst die Footer-Regeln aus
   leistungen-pages.css und aus dem Inline-Style der Startseite.

   Zwei Vorgaben stecken hier drin:
   1. Jede Seite bekommt denselben Footer (CTA-Zeile, Marke,
      drei Spalten, Rechtszeile, SICHTIO-Wasserzeichen).
   2. Im Footer bleibt nur EINE Linie stehen: die unter der
      CTA-Zeile. Alle weiteren Trennlinien sind entfernt.
   ============================================================ */

.footer {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 72px 0 28px;
  border-radius: 34px 34px 0 0;
  background: #0e3255;
  box-shadow: none;
  color: var(--white);
}

@media (max-width: 560px) {
  .footer { padding: 56px 0 24px; border-radius: 24px 24px 0 0; }
}

/* Inhalt liegt ueber dem Wasserzeichen */
.footer > * { position: relative; z-index: 1; }

.footer-watermark {
  position: absolute;
  inset-inline: 0;
  bottom: -.14em;
  z-index: 0;
  color: rgba(255, 255, 255, .05);
  font-size: clamp(96px, 15.5vw, 260px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1;
  pointer-events: none;
  text-align: center;
  user-select: none;
}

/* ---- Raster ---- */
.footer-cta {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-bottom: 56px;
  padding-bottom: 48px;
}

@media (min-width: 861px) {
  .footer-cta {
    align-items: flex-end;
    flex-direction: row;
    justify-content: space-between;
    gap: 44px;
  }
}

.footer-cta h2 {
  max-width: 20ch;
  margin: 0;
  color: var(--white);
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  letter-spacing: -.025em;
  line-height: 1.1;
}

.footer-pill {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 14px;
  padding: 6px 6px 6px 26px;
  border-radius: 999px;
  background: var(--white);
  color: #0e3255;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}

.footer-pill .pill-badge {
  display: grid;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #0e3255;
  color: var(--white);
  transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}

.footer-pill .pill-badge svg { width: 15px; height: 15px; }

@media (hover: hover) {
  .footer-pill:hover { transform: scale(1.035); }
  .footer-pill:hover .pill-badge { transform: translateX(3px); }
}

@media (prefers-reduced-motion: reduce) {
  .footer-pill:hover,
  .footer-pill:hover .pill-badge { transform: none; }
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.55fr) repeat(3, minmax(130px, .75fr));
  gap: 56px;
  align-items: start;
}

.footer-brand { min-width: 0; padding-right: 56px; }
.footer-logo { display: inline-flex; min-height: 44px; margin-bottom: 22px; align-items: flex-start; }
.footer-brand img { width: 124px; height: auto; }
.footer-brand p { max-width: 35ch; margin-bottom: 0; color: var(--ink-lead-on-deep); font-size: .94rem; line-height: 1.72; }
.footer h3 { margin-bottom: 18px; color: var(--white); font-size: .82rem; letter-spacing: .025em; }
.footer-links { display: grid; }

.footer-links a {
  display: flex;
  min-height: 44px;
  align-items: center;
  color: var(--ink-muted-on-deep);
  font-size: .875rem;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.footer-links a[href^="tel:"],
.footer-links a[href^="mailto:"] { color: var(--ink-on-deep-soft); font-weight: 600; }
.footer-links a:hover { color: var(--white); transform: translateX(3px); }

.footer-bottom {
  display: flex;
  margin-top: 56px;
  padding-top: 24px;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--ink-quiet-on-deep);
  font-size: .78rem;
}

.footer-legal { display: flex; gap: 24px; }
.footer-bottom a { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink-muted-on-deep); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

/* ---- Alle Trennlinien entfernen ----
   Muss auch die Regeln aus den Media Queries der anderen
   Stylesheets schlagen; diese Datei laedt als letzte.        */
.footer,
.footer-cta,
.footer-brand,
.footer-links,
.footer-links a,
.footer-bottom,
.footer-grid > div { border: none; }

/* ---- ... bis auf diese eine ---- */
.footer .footer-cta { border-bottom: 1px solid rgba(255, 255, 255, .14); }

/* Branchenseiten enden bereits mit dem ausführlichen Sichtbarkeitscheck.
   Eine zweite, gleichwertige Abschlussaufforderung direkt darunter würde
   die Entscheidung wieder öffnen. Die Kontaktwege bleiben im Footer. */
.page-industry .footer { padding-top: 56px; }
.page-industry .footer-cta { display: none; }

/* ---- Schmale Viewports ---- */
@media (max-width: 1040px) {
  .footer-grid { grid-template-columns: 1.25fr repeat(2, 1fr); gap: 44px; }
  .footer-brand { grid-row: span 2; padding-right: 44px; }
  .footer-grid > :last-child { grid-column: 2 / -1; }
}

@media (max-width: 680px) {
  .page-industry .footer { padding-top: 44px; }
  .footer-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; grid-row: auto; padding: 0 0 32px; }
  .footer-grid > :last-child { grid-column: 1 / -1; }
  .footer-bottom { margin-top: 40px; align-items: flex-start; flex-direction: column; }
  .footer-brand p { font-size: 1rem; }
}
