/* --- 1. Global Footer Layout & Alignment --- */

.site-footer {
  padding-block: var(--sp2);
}

/* Align with site container + 10px offset to the right */
.site-footer > .region,
.region-footer-bottom {
  max-width: var(--container-width, 1200px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp1);
  padding-left: 10px; /* The 10px rightward shift */
}

@media screen and (min-width: 701px) {
  .site-footer > .region {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }
}

/* --- 2. Typography & Nav Link Styling --- */

/* Match nav links to email/website style */
#block-olivero-sub-fusszeile a {
  text-decoration: underline;
  color: var(--color--link); /* Uses Olivero's default link color */
  font-size: 1rem;
}

#block-olivero-sub-fusszeile a:hover {
  text-decoration: none;
}

.site-footer p {
  margin: 0;
}

/* --- 3. Mobile Specific Overrides (< 700px) --- */

@media screen and (max-width: 700px) {
  .site-footer > .region,
  .region-footer-bottom {
    align-items: center;
    text-align: center;
    padding-left: 0; /* Optional: reset offset on mobile for perfect centering */
  }

  /* Spacing for Copyright & Created By */
  #block-olivero-sub-footercopyright,
  #block-olivero-sub-footercreatedby {
    margin-block-start: var(--sp1);
  }

  #block-olivero-sub-footercopyright p,
  #block-olivero-sub-footercreatedby p {
    font-size: 80%;
    white-space: normal;
  }
}

@media (min-width: 75rem) {
  /* 1. Ensure the parent container distributes space correctly */
  .region--footer-top-inner {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    width: 100% !important;
  }

  /* 2. Push the address block to the far right */
  #block-olivero-sub-footeradresse {
    margin-inline-start: auto !important;
    text-align: right !important; /* Aligns the lines of text to the right edge */
  }

  /* 3. Ensure the inner field item doesn't reset alignment */
  #block-olivero-sub-footeradresse .field__item {
    text-align: right !important;
  }
}
