/* Immo Rebellen site footer – loads on every page. Namespaced (#irf / .irf-*)
   and self-contained, so the theme/Elementor kit can't bleed into it. */

/* the per-page copies of the old footer section are replaced */
body.irf-on .elementor-location-footer,
body.irf-on #site-footer.site-footer,
body.irf-on [data-elementor-type="wp-page"] > .e-con.e-parent:has(a[href*="/impressum"]):has(a[href^="mailto:"]):has(a[href*="instagram.com"]),
body.irf-on [data-elementor-type="wp-page"] > .elementor-section:has(a[href*="/impressum"]):has(a[href^="mailto:"]):has(a[href*="instagram.com"]) {
  display: none !important;
}

#irf,
#irf * {
  box-sizing: border-box;
}

#irf {
  position: relative;
  overflow: hidden;
  margin: 0;
  color: #c7c7c7;
  background:
    radial-gradient(60% 50% at 100% 0%, rgba(227, 190, 79, 0.08), transparent 70%),
    #0b0d10;
  font-family: -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-align: left;
}

/* gold light along the top edge */
#irf::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(227, 190, 79, 0.55), transparent);
}

#irf a {
  color: inherit;
  text-decoration: none;
  box-shadow: none;
}

#irf img {
  display: block;
  max-width: none;
  border: 0;
}

#irf ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#irf li {
  margin: 0;
}

#irf .irf-ico {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#irf .irf-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- call to action band ---------- */

#irf .irf-cta {
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

#irf .irf-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding-top: 64px;
  padding-bottom: 56px;
  flex-wrap: wrap;
}

#irf .irf-eyebrow {
  margin: 0 0 10px;
  color: #e3be4f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

#irf .irf-cta-title {
  margin: 0;
  max-width: 720px;
  color: #f5f5f5;
  font-family: "IR Bebas Neue", "Bebas Neue", "Oswald", sans-serif;
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

#irf .irf-cta-title em {
  font-style: normal;
  color: #e3be4f;
}

#irf .irf-cta-text {
  margin: 14px 0 0;
  max-width: 560px;
  color: #a9adb4;
}

#irf .irf-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

#irf .irf-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#irf .irf-btn--gold {
  background: #e3be4f;
  color: #0d0f13;
  box-shadow: 0 12px 30px -12px rgba(227, 190, 79, 0.8);
}

#irf .irf-btn--gold::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

#irf .irf-btn--gold:hover {
  background: #f0cd63;
  transform: translateY(-1px);
}

#irf .irf-btn--gold:hover::before {
  left: 120%;
}

#irf .irf-btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: #f5f5f5;
}

#irf .irf-btn--ghost .irf-ico {
  color: #e3be4f;
}

#irf .irf-btn--ghost:hover {
  border-color: #e3be4f;
  background: rgba(227, 190, 79, 0.08);
}

/* ---------- main grid ---------- */

#irf .irf-main {
  padding: 56px 0 24px;
}

#irf .irf-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 40px 56px;
}

/* with the "Verkaufen" column (Leistungsseiten) */
#irf .irf-grid--4 {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 40px 44px;
}

#irf .irf-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* explicit classes: WP Rocket puts a <noscript> copy after every image,
   so :first-child / :last-child would miss */
#irf .irf-logo-mark {
  height: 40px;
  width: auto;
  max-width: none;
}

#irf .irf-logo-word {
  height: 16px;
  width: auto;
  max-width: none;
}

#irf .irf-claim {
  margin: 18px 0 22px;
  max-width: 360px;
  color: #a9adb4;
}

#irf .irf-social {
  display: flex;
  gap: 10px;
}


#irf .irf-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e9e6df;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

#irf .irf-social a:hover {
  border-color: #e3be4f;
  color: #e3be4f;
  background: rgba(227, 190, 79, 0.08);
  transform: translateY(-2px);
}

#irf .irf-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

#irf .irf-h {
  margin: 4px 0 16px;
  color: #f5f5f5;
  font-family: -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

#irf .irf-links {
  display: grid;
  gap: 4px;
}

#irf .irf-links a,
#irf .irf-links span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  color: #c7c7c7;
  transition: color 0.2s ease;
}

#irf .irf-links a:hover {
  color: #fff;
}

#irf .irf-links .irf-ico {
  color: #e3be4f;
}

/* nav links: small gold dash slides in on hover (takes no room until then) */
#irf .irf-nav a {
  gap: 0;
}

#irf .irf-nav a::before {
  content: "";
  width: 0;
  height: 1px;
  margin-right: 0;
  background: #e3be4f;
  transition: width 0.25s ease, margin-right 0.25s ease;
}

#irf .irf-nav a:hover::before,
#irf .irf-nav .is-current > a::before {
  width: 14px;
  margin-right: 10px;
}

#irf .irf-nav .is-current a {
  color: #fff;
}

#irf .irf-nav .irf-sub {
  padding-left: 14px;
}

#irf .irf-nav .irf-sub a {
  font-size: 14px;
  color: #9a9ea6;
}

/* ---------- giant wordmark ---------- */

/* ---------- Newsletter band: glass card between the columns and the big word ---------- */
:is(#irf, #irm-1) .irf-nl-wrap {
  padding-top: 8px;
  padding-bottom: 8px;
}

:is(#irf, #irm-1) .irf-nl {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 28px 48px;
  align-items: center;
  margin: 40px 0 0;
  padding: clamp(28px, 3.4vw, 44px);
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(227, 190, 79, 0.18);
  background:
    radial-gradient(70% 120% at 0% 0%, rgba(227, 190, 79, 0.14), transparent 60%),
    radial-gradient(50% 90% at 100% 100%, rgba(227, 190, 79, 0.06), transparent 70%),
    linear-gradient(180deg, rgba(26, 28, 34, 0.85), rgba(16, 18, 22, 0.85));
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* a soft band of light glides across now and then */
:is(#irf, #irm-1) .irf-nl::after {
  content: "";
  position: absolute;
  top: -50%;
  bottom: -50%;
  left: -40%;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255, 236, 180, 0.07), transparent);
  transform: rotate(18deg) translateX(0);
  animation: irf-sheen 9s ease-in-out infinite;
  pointer-events: none;
}

@keyframes irf-sheen {
  0%, 55% { transform: rotate(18deg) translateX(0); }
  100% { transform: rotate(18deg) translateX(620%); }
}

:is(#irf, #irm-1) .irf-nl-intro {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 20px;
  align-items: start;
}

:is(#irf, #irm-1) .irf-nl-icon {
  grid-row: span 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border: 1px solid rgba(227, 190, 79, 0.35);
  background: linear-gradient(145deg, rgba(227, 190, 79, 0.25), rgba(227, 190, 79, 0.05));
  color: #e3be4f;
  box-shadow: 0 12px 30px -12px rgba(227, 190, 79, 0.5);
  animation: irf-float 5s ease-in-out infinite;
}

@keyframes irf-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

:is(#irf, #irm-1) .irf-nl-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* everything next to the icon stays in the text column */
:is(#irf, #irm-1) .irf-nl-intro > :not(.irf-nl-icon) {
  grid-column: 2;
}

:is(#irf, #irm-1) .irf-nl-kicker {
  margin: 2px 0 0;
  color: #e3be4f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

:is(#irf, #irm-1) .irf-nl-title {
  margin: 0;
  color: #f5f5f5;
  font-family: "IR Bebas Neue", "Bebas Neue", "Oswald", sans-serif;
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

:is(#irf, #irm-1) .irf-nl-title em {
  font-style: normal;
  color: #e3be4f;
}

:is(#irf, #irm-1) .irf-nl-text {
  margin: 6px 0 0;
  max-width: 420px;
  color: #a9adb4;
  font-size: 14.5px;
  line-height: 1.6;
}

:is(#irf, #irm-1) .irf-nl-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: #e3be4f;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
}

:is(#irf, #irm-1) .irf-nl-more::after {
  content: "→";
  transition: transform 0.25s ease;
}

:is(#irf, #irm-1) .irf-nl-more:hover::after {
  transform: translateX(3px);
}

/* the larger form on /newsletter/ */
#irm-1 .irf-nl--page {
  grid-template-columns: minmax(0, 1fr);
  max-width: 880px;
  margin: 30px auto 0;
  padding: clamp(22px, 3vw, 34px);
  font-family: inherit;
  text-align: left;
}

#irm-1 .irf-nl--page .irf-nl-note,
#irm-1 .irf-nl--page .irf-nl-msg {
  text-align: center;
  margin-left: 0;
}

#irm-1 .irf-nl--page .irf-nl-done {
  justify-content: center;
}

#irm-1 .irf-nl--page .irf-nl-note a {
  color: inherit;
}

:is(#irf, #irm-1) .irf-nl-form {
  position: relative;
  margin: 0;
}

/* one glass bar: Vorname | Nachname | E-Mail | Anmelden */
:is(#irf, #irm-1) .irf-nl-bar {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 1.5fr) auto;
  align-items: center;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 9, 12, 0.55);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

:is(#irf, #irm-1) .irf-nl-bar:focus-within {
  border-color: rgba(227, 190, 79, 0.55);
  box-shadow: 0 0 0 5px rgba(227, 190, 79, 0.08);
}

:is(#irf, #irm-1) .irf-nl.is-err .irf-nl-bar {
  border-color: rgba(240, 120, 100, 0.65);
}

:is(#irf, #irm-1) .irf-nl-bar input {
  width: 100%;
  min-width: 0;
  height: 46px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #f5f5f5;
  font: inherit;
  font-size: 14.5px;
  outline: none;
  box-shadow: none;
  transition: background 0.25s ease;
}

:is(#irf, #irm-1) .irf-nl-bar input + input {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
}

:is(#irf, #irm-1) .irf-nl-bar input:focus {
  background: rgba(255, 255, 255, 0.04);
}

:is(#irf, #irm-1) .irf-nl-bar input::placeholder {
  color: #7d8188;
}

:is(#irf, #irm-1) .irf-nl-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

:is(#irf, #irm-1) .irf-nl-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  margin: 0;
  padding: 0 22px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #f0d27a, #e3be4f 55%, #caa13a);
  color: #0d0f13;
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(227, 190, 79, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

:is(#irf, #irm-1) .irf-nl-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px -10px rgba(227, 190, 79, 0.8);
}

:is(#irf, #irm-1) .irf-nl-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease;
}

:is(#irf, #irm-1) .irf-nl-btn:hover svg {
  transform: translateX(3px);
}

:is(#irf, #irm-1) .irf-nl.is-busy .irf-nl-btn {
  opacity: 0.7;
  cursor: progress;
}

:is(#irf, #irm-1) .irf-nl-note {
  margin: 12px 0 0 20px;
  color: #6f737a;
  font-size: 12px;
}

:is(#irf, #irm-1) .irf-nl-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

:is(#irf, #irm-1) .irf-nl-msg {
  margin: 8px 0 0 20px;
  color: #f08c78;
  font-size: 13px;
}

:is(#irf, #irm-1) .irf-nl-msg:empty {
  display: none;
}

/* success: the bar gives way to a gold check */
:is(#irf, #irm-1) .irf-nl-done {
  display: none;
  align-items: center;
  gap: 16px;
  min-height: 58px;
}

:is(#irf, #irm-1) .irf-nl.is-done .irf-nl-form {
  display: none;
}

:is(#irf, #irm-1) .irf-nl.is-done .irf-nl-done {
  display: flex;
  animation: irf-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

:is(#irf, #irm-1) .irf-nl-check {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(227, 190, 79, 0.45);
  background: rgba(227, 190, 79, 0.12);
  color: #e3be4f;
}

:is(#irf, #irm-1) .irf-nl-check path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
}

:is(#irf, #irm-1) .irf-nl.is-done .irf-nl-check path {
  animation: irf-draw 0.7s ease 0.25s forwards;
}

:is(#irf, #irm-1) .irf-nl-done strong {
  display: block;
  color: #f5f5f5;
  font-size: 16px;
}

:is(#irf, #irm-1) .irf-nl-done span {
  color: #a9adb4;
  font-size: 14px;
}

@keyframes irf-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes irf-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1023px) {
  :is(#irf, #irm-1) .irf-nl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :is(#irf, #irm-1) .irf-nl {
    margin-top: 28px;
    padding: 26px 20px;
    border-radius: 24px;
    text-align: left;
  }

  /* phone: small icon next to the kicker, then the title and text over the full width */
  :is(#irf, #irm-1) .irf-nl-intro {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px 12px;
    align-items: center;
  }

  :is(#irf, #irm-1) .irf-nl-icon {
    grid-row: auto;
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  :is(#irf, #irm-1) .irf-nl-icon svg {
    width: 20px;
    height: 20px;
  }

  :is(#irf, #irm-1) .irf-nl-intro > .irf-nl-kicker {
    grid-column: 2;
    margin: 0;
  }

  :is(#irf, #irm-1) .irf-nl-intro > :not(.irf-nl-icon):not(.irf-nl-kicker) {
    grid-column: 1 / -1;
  }

  :is(#irf, #irm-1) .irf-nl-title {
    margin-top: 10px;
  }

  /* stacked: names side by side, then e-mail, then the button */
  :is(#irf, #irm-1) .irf-nl-bar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  :is(#irf, #irm-1) .irf-nl-bar input,
  :is(#irf, #irm-1) .irf-nl-bar input + input {
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(8, 9, 12, 0.55);
  }

  :is(#irf, #irm-1) .irf-nl-bar input:focus {
    border-color: rgba(227, 190, 79, 0.55);
  }

  :is(#irf, #irm-1) .irf-nl-bar input[type="email"],
  :is(#irf, #irm-1) .irf-nl-btn {
    grid-column: 1 / -1;
  }

  :is(#irf, #irm-1) .irf-nl-btn {
    height: 50px;
  }

  :is(#irf, #irm-1) .irf-nl-note,
  :is(#irf, #irm-1) .irf-nl-msg {
    margin-left: 0;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(#irf, #irm-1) .irf-nl::after,
  :is(#irf, #irm-1) .irf-nl-icon {
    animation: none;
  }
}

#irf .irf-word {
  margin: 8px 0 -0.18em;
  padding: 0 12px;
  text-align: center;
  white-space: nowrap;
  font-family: "IR Bebas Neue", "Bebas Neue", "Oswald", sans-serif;
  font-size: clamp(64px, 17.5vw, 260px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.015) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
  pointer-events: none;
}

/* ---------- bottom bar ---------- */

#irf .irf-bottom {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.25);
}

#irf .irf-bottom-row {
  display: flex;
  align-items: center;
  gap: 12px 28px;
  min-height: 64px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
  font-size: 13px;
}

#irf .irf-copy {
  margin: 0;
  color: #8a8f98;
}

#irf .irf-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 0;
  margin: 0 auto;
}

/* fine separators between the legal links */
#irf .irf-legal li + li::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 14px;
  border-radius: 50%;
  background: rgba(227, 190, 79, 0.6);
  vertical-align: middle;
}

#irf .irf-legal a,
#irf .irf-legal button {
  color: #a9adb4;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  box-shadow: none;
}

#irf .irf-legal a:hover,
#irf .irf-legal button:hover {
  color: #e3be4f;
}

#irf .irf-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #a9adb4;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

#irf .irf-top:hover {
  border-color: #e3be4f;
  background: rgba(227, 190, 79, 0.08);
}

#irf .irf-top .irf-ico {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

#irf .irf-top:hover {
  color: #e3be4f;
}

#irf .irf-top:hover .irf-ico {
  transform: translateY(-3px);
}

#irf a:focus-visible,
#irf button:focus-visible {
  outline: 2px solid #e3be4f;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- tablet & phone ---------- */

@media (max-width: 1023px) {
  #irf .irf-grid {
    grid-template-columns: 1fr 1fr;
  }

  #irf .irf-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  #irf .irf-inner {
    padding: 0 20px;
  }

  #irf .irf-cta-row {
    padding-top: 52px;
    padding-bottom: 44px;
  }

  #irf .irf-cta-actions,
  #irf .irf-btn {
    width: 100%;
  }

  #irf .irf-main {
    padding: 44px 0 8px;
  }

  #irf .irf-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* brand block centred, the columns below separated by fine lines */
  #irf .irf-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 32px;
  }

  #irf .irf-logo-mark {
    height: 36px;
  }

  #irf .irf-logo-word {
    height: 14px;
  }

  #irf .irf-claim {
    margin: 16px auto 22px;
    max-width: 300px;
  }

  #irf .irf-col {
    padding: 26px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  #irf .irf-h {
    margin-bottom: 12px;
  }

  /* navigation: two columns instead of one long list */
  #irf .irf-nav {
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
  }

  #irf .irf-word {
    font-size: 16vw;
    margin: 16px 0 34px;
  }

  /* bottom bar: centred, the "back to top" button sits on the line */
  #irf .irf-bottom-row {
    position: relative;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding-top: 40px;
    padding-bottom: calc(26px + env(safe-area-inset-bottom));
    text-align: center;
  }

  #irf .irf-legal {
    justify-content: center;
    order: 1;
    row-gap: 12px;
  }

  #irf .irf-copy {
    order: 2;
    font-size: 12px;
  }

  #irf .irf-top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    padding: 0;
    justify-content: center;
    border-color: rgba(227, 190, 79, 0.55);
    background: #0b0d10;
    color: #e3be4f;
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.8);
  }

  #irf .irf-top-label {
    display: none;
  }

  #irf .irf-top:hover .irf-ico {
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  #irf *,
  #irf *::before {
    transition: none !important;
  }
}

/* plugin pages (property list/detail): the Elementor container around the
   app keeps its own bottom padding, which showed the white page background
   as a strip above the footer */
.e-con:has(#ir-app) {
  padding-bottom: 0 !important;
}

body:has(#ir-app) {
  background-color: #0d0f13;
}

/* ---------- small "Gratis-PDF" hint (landing pages, news) – links to the download ---------- */
:is(#irm-1, #irm-2, #irn, #irf, body) a.ir-pdfhint {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 760px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(227, 190, 79, 0.28);
  background: linear-gradient(110deg, rgba(227, 190, 79, 0.09), rgba(22, 24, 29, 0.55) 55%);
  color: #c9cbd0;
  font: 500 14px/1.45 Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

:is(#irm-1, #irm-2, #irn, #irf, body) a.ir-pdfhint:hover {
  border-color: rgba(227, 190, 79, 0.65);
  transform: translateY(-1px);
}

:is(#irm-1, #irm-2, #irn, #irf, body) .ir-pdfhint-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(227, 190, 79, 0.14);
  color: #e3be4f;
}

:is(#irm-1, #irm-2, #irn, #irf, body) .ir-pdfhint svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:is(#irm-1, #irm-2, #irn, #irf, body) .ir-pdfhint-t {
  flex: 1;
  min-width: 0;
}

:is(#irm-1, #irm-2, #irn, #irf, body) .ir-pdfhint-t b {
  display: block;
  color: #f5f5f5;
  font-weight: 700;
}

:is(#irm-1, #irm-2, #irn, #irf, body) .ir-pdfhint-go {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e3be4f;
  font-weight: 700;
  white-space: nowrap;
}

:is(#irm-1, #irm-2, #irn, #irf, body) .ir-pdfhint-go svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

:is(#irm-1, #irm-2, #irn, #irf, body) a.ir-pdfhint:hover .ir-pdfhint-go svg {
  transform: translateX(3px);
}

@media (max-width: 560px) {
  :is(#irm-1, #irm-2, #irn, #irf, body) a.ir-pdfhint {
    gap: 12px;
    padding: 10px 12px;
    font-size: 13px;
  }

  :is(#irm-1, #irm-2, #irn, #irf, body) .ir-pdfhint-ic {
    width: 34px;
    height: 34px;
  }

  :is(#irm-1, #irm-2, #irn, #irf, body) .ir-pdfhint-go {
    font-size: 0;
    gap: 0;
  }

  :is(#irm-1, #irm-2, #irn, #irf, body) .ir-pdfhint-go svg {
    width: 18px;
    height: 18px;
  }
}

#irf .irf-links a.irf-pdf {
  color: #e3be4f;
}

:is(#irf, #irm-1) .irf-nl-more {
  justify-self: start;
}
