/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  position: relative;
  overflow: hidden;
  padding-block: 60px;
  background: var(--surface-soft);
}

/* Großes Signet als Hintergrund — läuft oben und unten aus dem
   Footer heraus und wird von ihm beschnitten. Es sitzt nicht
   mittig, sondern um --footer-mark-y tiefer. */
.footer__watermark {
  --footer-mark-w: 1000px;
  --footer-mark-y: 64px;

  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #F4F4F4;
  -webkit-mask-image: url("../../logo/WP_Mark.svg");
  mask-image: url("../../logo/WP_Mark.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: var(--footer-mark-w) auto;
  mask-size: var(--footer-mark-w) auto;
  -webkit-mask-position: center calc(50% + var(--footer-mark-y));
  mask-position: center calc(50% + var(--footer-mark-y));
  pointer-events: none;
}

/* ---------- Raster ----------
   Zwei Spalten, drei Reihen: Logos, Text, Kontakt. Dadurch
   stehen linke und rechte Spalte automatisch auf denselben
   Grundlinien. */
.footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 32px;
  column-gap: 48px;
  align-items: start;
}

/* ---------- Logo-Lockup ---------- */
.footer__brand {
  display: flex;
  align-items: center;
}

.footer__logo-wp {
  height: 150px;
}

.footer__divider {
  width: 1px;
  height: 138px;
  margin-inline: 48px;
  background: var(--line);
}

.footer__logo-talents {
  width: 230px;
}

/* Platzierung im Raster liegt am Link, die Maße am Bild darin —
   der Link ist seit der Verlinkung das Raster-Element. */
.footer__idw {
  display: block;
  align-self: end;
  justify-self: end;
}

.footer__idw img {
  width: auto;
  height: 64px;
}

/* ---------- Texte ---------- */
.footer__claim {
  max-width: 450px;
  font-size: 20px;
  font-weight: var(--fw-bold);
  line-height: 28px;
  color: var(--ink-soft);
}

.footer__org {
  max-width: 320px;
  justify-self: end;
  font-size: 20px;
  font-weight: var(--fw-bold);
  line-height: 28px;
  text-align: right;
  color: var(--ink);
}

/* ---------- Social ---------- */
.footer__social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.socialbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: none;          /* nicht schrumpfen — lieber umbrechen */
  width: 52px;
  height: 52px;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--brand);
  transition: background-color var(--dur) var(--ease);
}

.socialbtn:hover {
  background: #F0F0F0;
}

.socialbtn .icon {
  width: 28px;
  height: 28px;
  max-width: 28px;
  max-height: 28px;
}

/* Newsletter-Button trägt zusätzlich Text */
.socialbtn--wide {
  width: auto;
  padding-inline: 16px;
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--ink-soft);
}

.socialbtn--wide .icon {
  color: var(--brand);
}

/* ---------- Kontakt ---------- */
.footer__contact {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 84px;
  justify-self: end;
  justify-content: end;
  text-align: right;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
}

.footer__contact a:hover {
  color: var(--brand);
}

/* ---------- Rechtliches ----------
   Reihenabstand ist 32px — plus 32px eigener Abstand ergibt die
   64px aus dem Layout. */
.footer__legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 48px;
  margin-top: 32px;
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  line-height: 1;
  color: var(--ink-soft);
}

.footer__legal a,
.footer__legal button {
  color: inherit;
  font: inherit;
  transition: color var(--dur) var(--ease);
}

.footer__legal a:hover,
.footer__legal button:hover {
  color: var(--brand);
}