/* ==========================================================================
   Innenausbau Bregenzer – Theme
   Datei: fileadmin/theme/ib-theme.css (eingebunden im TypoScript-Datensatz "vige")
   Schrift: fileadmin/theme/ib-fonts.css (Poppins, lokal eingebettet)
   Varianten werden im Inhaltselement unter Darstellung > Rahmen gewählt.
   ========================================================================== */

:root {
  --ib-blue: #1976d2;        /* Buttons, Links (Kontrast AA auf Weiß) */
  --ib-blue-bright: #2196f3; /* Akzente, Linien */
  --ib-ink: #111827;         /* Überschriften */
  --ib-text: #4b5563;        /* Fließtext */
  --ib-muted: #6b7280;
  --ib-line: #e5e7eb;
  --ib-soft: #f4f6f9;        /* helle Flächen */
  --ib-navy: #0d1726;        /* dunkle Flächen */
  --ib-navy-2: #111f33;
  --ib-radius: 4px;
  --ib-font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bs-primary: var(--ib-blue);
  --bs-primary-rgb: 25, 118, 210;
  --bs-link-color: var(--ib-blue);
  --bs-link-color-rgb: 25, 118, 210;
  --bs-link-hover-color: #115293;
  --bs-body-font-family: var(--ib-font);
  --bs-body-color: var(--ib-text);
}

/* ---------- Grundlagen ---------- */
body {
  font-family: var(--ib-font);
  color: var(--ib-text);
  font-size: 1rem;
  line-height: 1.7;
  background: #fff;
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--ib-font);
  color: var(--ib-ink);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h2, .h2 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); }
a { color: var(--ib-blue); }
a:hover, a:focus { color: #115293; }
:focus-visible { outline: 2px solid var(--ib-blue-bright); outline-offset: 2px; }
.body-bg { background: #fff; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--ib-font);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--ib-radius);
  padding: 0.85rem 1.5rem !important;
  margin-bottom: 0 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 0.6rem;
  transition: background-color .2s, transform .2s, box-shadow .2s;
}
.btn::after {
  content: "";
  width: 1em;
  height: 1em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s;
}
.btn:hover::after { transform: translateX(3px); }
.btn-primary {
  --bs-btn-bg: var(--ib-blue);
  --bs-btn-border-color: var(--ib-blue);
  --bs-btn-hover-bg: #115293;
  --bs-btn-hover-border-color: #115293;
  --bs-btn-active-bg: #0d3f73;
  background-color: var(--ib-blue) !important;
  border-color: var(--ib-blue) !important;
  color: #fff !important;
  box-shadow: 0 6px 16px -6px rgba(25, 118, 210, .55);
}
.btn-primary:hover, .btn-primary:focus {
  background-color: #115293 !important;
  border-color: #115293 !important;
}

/* ---------- Header ---------- */
#page-header.navbar-mainnavigation {
  background: var(--ib-navy) !important; /* gleicher Farbton wie der Footer */
  background-image: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .25);
  padding-top: .5rem;
  padding-bottom: .5rem;
}
#page-header .navbar-brand-image {
  height: auto !important;
  display: flex;
  align-items: center;
  padding: 0 !important;
}
#page-header .navbar-brand-image img {
  position: static !important;
  top: auto !important;
  transform: none !important;
  height: 80px !important;
  width: auto !important;
  max-height: none !important;
}
#page-header .navbar-brand-logo-inverted { display: none !important; }
#page-header .navbar-brand-logo-normal { display: block !important; }
#page-header .nav-link,
.navbar-mainnavigation .nav-link {
  color: #e6ebf2 !important;
  font-weight: 500 !important;
  font-size: .9rem;
  position: relative;
}
#page-header .nav-link:hover,
#page-header .nav-link:focus { color: #fff !important; }
#page-header .nav-link.active,
#page-header .nav-link[aria-current="true"],
#page-header .nav-link[aria-current="page"] { color: #fff !important; }
#page-header .navbar-toggler { border-color: rgba(255, 255, 255, .2); color: #fff; }

/* Telefonnummer als letzter Menüpunkt (Seite vom Typ "Link" mit tel:-Adresse) */
#page-header .nav-link[href^="tel:"] {
  color: var(--ib-blue-bright) !important;
  font-weight: 600 !important;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
#page-header .nav-link[href^="tel:"]::before,
#page-footer a[href^="tel:"]::before,
#page-footer a[href^="mailto:"]::before {
  content: "";
  flex: 0 0 auto;
  width: 1.05em;
  height: 1.05em;
  background: currentColor;
  -webkit-mask: var(--ib-ico) center / contain no-repeat;
          mask: var(--ib-ico) center / contain no-repeat;
}
#page-header .nav-link[href^="tel:"],
#page-footer a[href^="tel:"] {
  --ib-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E");
}
#page-footer a[href^="mailto:"] {
  --ib-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
}

@media (min-width: 992px) {
  #page-header .container-mainnavigation { min-height: 84px; }
  #page-header #mainnavigation { justify-content: flex-end; }
  #page-header .navbar-nav { gap: 1.75rem; align-items: center; justify-content: flex-end; margin-left: auto; }
  #page-header .navbar-nav .nav-link { padding-left: 0 !important; padding-right: 0 !important; }
  #page-header .nav-link-main::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: .1rem;
    height: 2px;
    background: var(--ib-blue-bright);
    transform: scaleX(0);
    transition: transform .2s;
  }
  #page-header .nav-link-main:hover::after,
  #page-header .nav-link-main.active::after,
  #page-header .nav-link-main[aria-current="true"]::after { transform: scaleX(1); }
  #page-header .nav-link[href^="tel:"]::after { display: none; }
  #page-header .nav-item:has(> .nav-link[href^="tel:"]) {
    margin-left: 1.5rem;
    padding-left: 1.75rem;
    border-left: 1px solid rgba(255, 255, 255, .15);
  }
}
@media (max-width: 991.98px) {
  #page-header .navbar-collapse { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: .5rem; }
  #page-header .navbar-nav .nav-link { padding: .75rem 0 !important; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  #page-header .navbar-brand-image img { height: 60px !important; }
}

/* ---------- Abstände der Startseiten-Bereiche ---------- */
[class*="frame-ib-"] { padding-top: 0; padding-bottom: 0; }
[class*="frame-ib-"] .frame-inner > header,
[class*="frame-ib-"] .textmedia-text > header { margin-bottom: 1rem; }

/* kleiner blauer Strich über/unter Überschriften */
.frame-ib-intro header h2::after,
.frame-ib-split .textmedia-text header::before {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: var(--ib-blue-bright);
}

/* ---------- Hero ---------- */
.frame-ib-hero { padding: 2rem 0 3rem; overflow: hidden; }
.frame-ib-hero h1 {
  font-size: clamp(2rem, 1.2rem + 2.8vw, 3.25rem);
  margin-bottom: 0;
}
.frame-ib-hero header h2 {
  font-size: clamp(2rem, 1.2rem + 2.8vw, 3.25rem);
  color: var(--ib-blue-bright);
  margin: 0;
}
.frame-ib-hero header { margin-bottom: 1.25rem !important; }
.frame-ib-hero .textmedia-text p { max-width: 30rem; font-size: 1rem; }
.frame-ib-hero .textmedia-text p:last-child { margin-top: 1.75rem; }
.frame-ib-hero .textmedia-gallery { position: relative; }
.frame-ib-hero .gallery-row,
.frame-ib-hero .gallery-item,
.frame-ib-hero figure { margin: 0 !important; width: 100% !important; max-width: none !important; }
.frame-ib-hero figure img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0 !important;
  display: block;
}
@media (min-width: 992px) {
  .frame-ib-hero { padding: 3rem 0 4.5rem; }
  .frame-ib-hero .textmedia {
    display: grid !important;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
  }
  .frame-ib-hero .textmedia-text {
    grid-column: 1; grid-row: 1;
    position: relative; z-index: 2;
    padding-right: 0;
    width: auto !important; max-width: none !important; margin: 0 !important;
  }
  .frame-ib-hero .textmedia-gallery {
    grid-column: 2; grid-row: 1;
    width: auto !important; max-width: none !important; margin: 0 !important;
    margin-left: -6rem !important;
    margin-right: calc((960px - 100vw) / 2 - 20px) !important; /* bis zum rechten Bildschirmrand */
  }
  /* weicher Übergang vom Weiß ins Bild */
  .frame-ib-hero .textmedia-gallery::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 45%;
    background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.85) 30%, rgba(255,255,255,0) 100%);
    z-index: 1;
    pointer-events: none;
  }
  .frame-ib-hero figure img { aspect-ratio: auto; min-height: 460px; max-height: 560px; }
}
@media (min-width: 1200px) {
  .frame-ib-hero .textmedia-gallery { margin-right: calc((1140px - 100vw) / 2 - 20px) !important; }
}
@media (min-width: 1400px) {
  .frame-ib-hero .textmedia-gallery { margin-right: calc((1320px - 100vw) / 2 - 20px) !important; }
}
@media (max-width: 991.98px) {
  /* Hochformat / Tablet / Handy: erst Text, dann Bild */
  .frame-ib-hero .textmedia { display: flex !important; flex-direction: column !important; gap: 1.75rem; }
  .frame-ib-hero .textmedia-text { order: 1 !important; }
  .frame-ib-hero .textmedia-gallery { order: 2 !important; }
  .frame-ib-hero figure img { height: auto; aspect-ratio: 16 / 10; }
  .frame-ib-hero .textmedia-gallery { margin: 0 -20px !important; width: auto !important; max-width: none !important; }
  .frame-ib-hero .textmedia-text { width: auto !important; max-width: none !important; margin: 0 !important; }
}

/* ---------- Intro zentriert ---------- */
.frame-ib-intro { padding: 3rem 0 1.5rem; text-align: center; }
.frame-ib-intro header h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.75rem); }
.frame-ib-intro header h2::after { margin: 1rem auto 0; }
.frame-ib-intro p { max-width: 50rem; margin-left: auto; margin-right: auto; }
.frame-ib-intro strong { color: var(--ib-blue); font-weight: 600; }

/* ---------- Vorteile mit Icons ---------- */
.frame-ib-features { padding: 1.5rem 0 4rem; }
.frame-ib-features .icongroup { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 !important; }
.frame-ib-features .icongroup-item {
  width: auto !important; max-width: none !important; flex: none !important;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 1rem 2rem !important; margin: 0 !important;
  border-left: 1px solid var(--ib-line);
}
.frame-ib-features .icongroup-item:first-child { border-left: 0; }
.frame-ib-features .icongroup-item-icon {
  width: 64px !important; height: 64px !important;
  background: none !important; border: 0 !important; box-shadow: none !important;
  margin: 0 auto 1rem !important; padding: 0 !important;
  color: var(--ib-blue-bright);
}
.frame-ib-features .icongroup-item-icon svg,
.frame-ib-features .icongroup-item-icon img { width: 64px !important; height: 64px !important; }
.frame-ib-features .icongroup-item-text-header {
  font-size: 1.05rem !important; font-weight: 600; color: var(--ib-ink); margin-bottom: .4rem;
}
.frame-ib-features .icongroup-item-text p { font-size: .9rem; color: var(--ib-muted); margin: 0; max-width: 18rem; margin-inline: auto; }
@media (max-width: 767.98px) {
  .frame-ib-features .icongroup { grid-template-columns: 1fr; }
  .frame-ib-features .icongroup-item { border-left: 0; border-top: 1px solid var(--ib-line); padding: 1.25rem 1rem !important; }
  .frame-ib-features .icongroup-item-icon,
  .frame-ib-features .icongroup-item-icon svg,
  .frame-ib-features .icongroup-item-icon img { width: 52px !important; height: 52px !important; }
  .frame-ib-features .icongroup-item-icon { margin-bottom: .6rem !important; }
  .frame-ib-features { padding-bottom: 2.5rem; }
  .frame-ib-features .icongroup-item:first-child { border-top: 0; }
}

/* ---------- Bild + Text (Box) ---------- */
.frame-ib-split { padding: 0 0 3rem; }
.frame-ib-split + .frame-ib-split { margin-top: 0 !important; } /* Bootstrap Package zieht aufeinanderfolgende Elemente sonst zusammen */
.frame-ib-split .textmedia {
  background: var(--ib-soft);
  display: grid !important;
  grid-template-columns: 1fr;
  align-items: center;
  overflow: visible;
}
.frame-ib-split .textmedia-gallery,
.frame-ib-split .textmedia-text { width: auto !important; max-width: none !important; margin: 0 !important; float: none !important; }
.frame-ib-split .textmedia-gallery { position: relative; }
.frame-ib-split .gallery-row,
.frame-ib-split .gallery-item,
.frame-ib-split figure { margin: 0 !important; width: 100% !important; max-width: none !important; }
.frame-ib-split figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; border-radius: 0 !important; }
.frame-ib-split .textmedia-gallery::after {
  content: "";
  position: absolute;
  left: -1.25rem; bottom: -1.25rem;
  width: 90px; height: 90px;
  border: 2px solid var(--ib-blue-bright);
  z-index: -1;
}
.frame-ib-split .textmedia-text { padding: 2rem 1.5rem; }
.frame-ib-split .textmedia-text header::before { margin-bottom: 1rem; }
.frame-ib-split .textmedia-text h2 { font-size: clamp(1.4rem, 1.1rem + .9vw, 1.75rem); }
.frame-ib-split .textmedia-text p:last-child { margin-bottom: 0; }
.frame-ib-split .textmedia-text p:has(> .btn) { margin-top: 1.5rem; }
.frame-ib-split .textmedia-text header h3 { font-size: 1rem !important; color: var(--ib-blue); font-weight: 600; letter-spacing: 0; margin: .5rem 0 0; }
@media (min-width: 992px) {
  .frame-ib-split .textmedia { grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); }
  .frame-ib-split .textmedia-gallery { grid-column: 1; grid-row: 1; }
  .frame-ib-split .textmedia-text { grid-column: 2; grid-row: 1; padding: 2.5rem 3rem; }
}
@media (max-width: 991.98px) {
  .frame-ib-split .textmedia-gallery::after { display: none; }
  .frame-ib-split .textmedia-text { padding: 2rem 1.75rem; }
}

/* ---------- Beratungs-Banner (dunkel) ---------- */
.frame-ib-cta { padding: 0 0 1.5rem; }
.frame-ib-cta .frame-inner {
  position: relative;
  background: linear-gradient(135deg, var(--ib-navy-2), var(--ib-navy));
  color: #c9d3e0;
  padding: 2.25rem 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: .25rem 2rem;
  align-items: center;
}
/* blaue Eckwinkel */
.frame-ib-cta .frame-inner::before,
.frame-ib-cta .frame-inner::after {
  content: "";
  position: absolute;
  width: 34px; height: 34px;
  border: 2px solid var(--ib-blue-bright);
  pointer-events: none;
}
.frame-ib-cta .frame-inner::before { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.frame-ib-cta .frame-inner::after { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.frame-ib-cta header { margin: 0 !important; }
.frame-ib-cta header h2 { color: #fff; font-size: clamp(1.25rem, 1rem + .8vw, 1.6rem); margin: 0; }
.frame-ib-cta p { margin: 0; color: #c9d3e0; }
.frame-ib-cta p:last-child { margin-top: 1.25rem; }
@media (min-width: 992px) {
  .frame-ib-cta .frame-inner {
    grid-template-columns: 64px 1fr auto;
    padding: 2.5rem 3.5rem;
  }
  .frame-ib-cta .frame-inner > header { grid-column: 2; grid-row: 1; }
  .frame-ib-cta .frame-inner > p { grid-column: 2; }
  .frame-ib-cta .frame-inner > p:last-child { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
  /* Sprechblasen-Icon */
  .frame-ib-cta .frame-inner > header::before {
    content: "";
    position: absolute;
    left: 3.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    background: var(--ib-blue-bright);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M24 7c10.5 0 19 6.9 19 15.5S34.5 38 24 38c-2 0-3.9-.2-5.7-.7L9 42l2.4-7.6C7.5 31.6 5 27.3 5 22.5 5 13.9 13.5 7 24 7z'/%3E%3Cpath d='M16 23h.01M24 23h.01M32 23h.01' stroke-width='3.6'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M24 7c10.5 0 19 6.9 19 15.5S34.5 38 24 38c-2 0-3.9-.2-5.7-.7L9 42l2.4-7.6C7.5 31.6 5 27.3 5 22.5 5 13.9 13.5 7 24 7z'/%3E%3Cpath d='M16 23h.01M24 23h.01M32 23h.01' stroke-width='3.6'/%3E%3C/svg%3E") center / contain no-repeat;
  }
}

/* ---------- Footer ---------- */
#page-footer.bp-page-footer,
#page-footer .footer-section { background: var(--ib-navy) !important; color: #aab6c5; }
#page-footer .footer-section-content { padding: 3.5rem 0 2rem; }
#page-footer h1, #page-footer h2, #page-footer h3, #page-footer h4, #page-footer h5 {
  color: #fff;
  font-size: .95rem !important;
  font-weight: 600;
  margin-bottom: 1rem;
}
#page-footer a { color: #aab6c5; text-decoration: none; }
#page-footer a:hover, #page-footer a:focus { color: #fff; }
#page-footer ul { list-style: none; padding: 0; margin: 0; }
#page-footer li { margin-bottom: .45rem; font-size: .9rem; }
#page-footer p, #page-footer li { font-size: .9rem; color: #aab6c5; }
#page-footer .frame-ib-footer-logo .gallery-row { justify-content: flex-start !important; }
#page-footer .frame-ib-footer-logo figure, #page-footer .frame-ib-footer-logo .gallery-item { margin: 0 !important; }
#page-footer .frame-ib-footer-logo p { max-width: 18rem; }
#page-footer a[href^="tel:"],
#page-footer a[href^="mailto:"] { display: inline-flex; align-items: center; gap: .6rem; color: #aab6c5; word-break: break-all; }
#page-footer a[href^="tel:"]::before,
#page-footer a[href^="mailto:"]::before { background: var(--ib-blue-bright); }
#page-footer .frame-ib-footer-logo img { display: block; max-width: 160px; height: auto; margin: 0 0 1rem !important; }
#page-footer .footer-section-meta {
  border-top: 1px solid rgba(255,255,255,.08);
  background: #08101c !important;
  font-size: .8rem;
}
#page-footer .footer-section-meta .frame-inner { padding-top: 1rem; padding-bottom: 1rem; }
#page-footer .footer-copyright, #page-footer .footer-copyright p { color: #7d8a9b; font-size: .8rem; margin: 0; }
#page-footer .footer-navigation a { color: #aab6c5; font-size: .8rem; }
@media (min-width: 768px) {
  #page-footer .footer-section-meta .frame-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
  #page-footer .footer-menu-section { order: 2; margin: 0 !important; }
  #page-footer .footer-info-section { order: 1; margin: 0 !important; text-align: left; flex: 1 1 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
  #page-footer .footer-menu-section:not(:has(a)) { display: none; }
  #page-footer .footer-copyright { order: 1; }
  #page-footer .footer-meta { order: 2; margin: 0 !important; }
  #page-footer .footer-sociallinks { order: 3; }
  #page-footer .footer-sociallinks:not(:has(li)) { display: none; }
  #page-footer .footer-navigation ul, #page-footer .footer-navigation .footer-navigation-list { justify-content: flex-end; margin: 0; }
}

/* ==========================================================================
   Unterseiten
   ========================================================================== */

/* ---------- Seitenkopf ---------- */
.frame-ib-pagehead { background: var(--ib-soft); padding: 3.5rem 0 3rem; margin-bottom: 3.5rem; }
.frame-ib-pagehead + .frame { margin-top: 0 !important; }
.frame-ib-pagehead header { display: flex; flex-direction: column-reverse; margin-bottom: 1rem !important; }
.frame-ib-pagehead header h2 {
  font-size: .8rem !important; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ib-blue); font-weight: 600; margin: 0 0 .75rem;
  display: flex; align-items: center; gap: .75rem;
}
.frame-ib-pagehead header h2::before { content: ""; width: 28px; height: 2px; background: var(--ib-blue-bright); }
.frame-ib-pagehead h1 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem); margin: 0; max-width: 42rem; }
.frame-ib-pagehead p { max-width: 42rem; font-size: 1.05rem; margin: 0; }
@media (max-width: 767.98px) {
  .frame-ib-pagehead { padding: 2.5rem 0 2rem; margin-bottom: 2.5rem; }
}

/* ---------- Bild + Text: Bild rechts ---------- */
@media (min-width: 992px) {
  .frame-ib-split .textmedia-right { grid-template-columns: minmax(0, 9fr) minmax(0, 11fr); }
  .frame-ib-split .textmedia-right .textmedia-gallery { grid-column: 2; }
  .frame-ib-split .textmedia-right .textmedia-text { grid-column: 1; }
  .frame-ib-split .textmedia-right .textmedia-gallery::after { left: auto; right: -1.25rem; }
}

/* ---------- Überschriften über Gruppen ---------- */
.frame-ib-features .frame-inner > header,
.frame-ib-contact .frame-inner > header { text-align: center; }
.frame-ib-features .frame-inner > header h2,
.frame-ib-steps .frame-inner > header h2,
.frame-ib-contact .frame-inner > header h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.75rem); }
.frame-ib-features .frame-inner > header h2::after,
.frame-ib-steps .frame-inner > header h2::after,
.frame-ib-contact .frame-inner > header h2::after {
  content: ""; display: block; width: 40px; height: 3px; border-radius: 2px;
  background: var(--ib-blue-bright); margin-top: 1rem;
}
.frame-ib-features .frame-inner > header h2::after,
.frame-ib-contact .frame-inner > header h2::after { margin-left: auto; margin-right: auto; }

/* ---------- Vorteile: 4 bzw. 2 Spalten ---------- */
.frame-ib-features .icongroup.icongroup-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.frame-ib-features .icongroup.icongroup-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 991.98px) {
  .frame-ib-features .icongroup.icongroup-columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1rem; }
  .frame-ib-features .icongroup-columns-4 .icongroup-item:nth-child(3) { border-left: 0; }
}
@media (max-width: 767.98px) {
  .frame-ib-features .icongroup.icongroup-columns-4,
  .frame-ib-features .icongroup.icongroup-columns-2 { grid-template-columns: 1fr; row-gap: 0; }
  .frame-ib-features .icongroup-columns-4 .icongroup-item,
  .frame-ib-features .icongroup-columns-2 .icongroup-item { border-left: 0; }
}

/* ---------- Ansprechpartner ---------- */
.frame-ib-person { padding: 0 0 4rem; }
.frame-ib-person .textmedia { display: grid !important; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
.frame-ib-person .textmedia-gallery,
.frame-ib-person .textmedia-text { width: auto !important; max-width: none !important; margin: 0 !important; float: none !important; }
.frame-ib-person .gallery-row,
.frame-ib-person .gallery-item,
.frame-ib-person figure { margin: 0 !important; width: 100% !important; max-width: none !important; }
.frame-ib-person .textmedia-gallery { max-width: 380px !important; }
.frame-ib-person figure { overflow: hidden; }
.frame-ib-person figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 15%; display: block; border-radius: 0 !important; transform: scale(1.04); /* schneidet den dunklen Rand im Foto weg */ }
.frame-ib-person .textmedia-text header::before {
  content: ""; display: block; width: 40px; height: 3px; border-radius: 2px;
  background: var(--ib-blue-bright); margin-bottom: 1rem;
}
.frame-ib-person .textmedia-text p { max-width: 34rem; }
@media (min-width: 768px) {
  .frame-ib-person .textmedia { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; }
  .frame-ib-person .textmedia-gallery { grid-column: 1; grid-row: 1; }
  .frame-ib-person .textmedia-text { grid-column: 2; grid-row: 1; }
}

/* ---------- Ablauf (nummerierte Schritte) ---------- */
.frame-ib-steps { padding: 1rem 0 4rem; counter-reset: ibstep; }
.frame-ib-steps .icongroup { display: grid !important; grid-template-columns: 1fr; gap: 1.25rem; margin: 2rem 0 0 !important; }
.frame-ib-steps .icongroup-item {
  width: auto !important; max-width: none !important; flex: none !important; margin: 0 !important;
  padding: 1.75rem 1.5rem !important; text-align: left;
  background: #fff; border: 1px solid var(--ib-line); border-top: 3px solid var(--ib-blue-bright);
  counter-increment: ibstep;
  display: block !important;
}
.frame-ib-steps .icongroup-item::before {
  content: counter(ibstep, decimal-leading-zero);
  display: block; font-family: var(--ib-font); font-size: 2rem; font-weight: 700; line-height: 1;
  color: var(--ib-blue-bright); margin-bottom: .75rem;
}
.frame-ib-steps .icongroup-item-text-header { font-size: 1.1rem !important; font-weight: 600; color: var(--ib-ink); margin-bottom: .4rem; }
.frame-ib-steps .icongroup-item-text p { font-size: .92rem; margin: 0; color: var(--ib-muted); }
@media (min-width: 768px) { .frame-ib-steps .icongroup { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .frame-ib-steps .icongroup { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Kontakt-Karten ---------- */
.frame-ib-contact { padding: 0 0 4rem; }
.frame-ib-contact .icongroup { display: grid !important; grid-template-columns: 1fr; gap: 1.25rem; margin: 2rem 0 0 !important; }
.frame-ib-contact .icongroup-item {
  width: auto !important; max-width: none !important; flex: none !important; margin: 0 !important;
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 2rem 1.5rem !important; background: #fff; border: 1px solid var(--ib-line);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.frame-ib-contact .icongroup-item:has(a):hover {
  border-color: var(--ib-blue-bright);
  box-shadow: 0 12px 28px -14px rgba(17, 24, 39, .25);
  transform: translateY(-2px);
}
.frame-ib-contact .icongroup-item-icon {
  width: 56px !important; height: 56px !important; background: none !important; border: 0 !important;
  box-shadow: none !important; margin: 0 auto 1rem !important; padding: 0 !important;
}
.frame-ib-contact .icongroup-item-icon svg { width: 56px !important; height: 56px !important; }
.frame-ib-contact .icongroup-item-text-header {
  font-size: .8rem !important; text-transform: uppercase; letter-spacing: .12em;
  color: var(--ib-muted); font-weight: 600; margin-bottom: .35rem;
}
.frame-ib-contact .icongroup-item-text-header a { color: inherit; text-decoration: none; }
.frame-ib-contact .icongroup-item-text-header a::after { content: ""; position: absolute; inset: 0; } /* ganze Karte klickbar */
.frame-ib-contact .icongroup-item-text p { margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--ib-ink); word-break: break-word; }
@media (min-width: 768px) { .frame-ib-contact .icongroup { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Kleinigkeiten ---------- */
.scroll-top { background: var(--ib-blue) !important; border-radius: var(--ib-radius); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
