/* ============================================================
   INTBOARD.DE — Professional Header / Footer Enhancements
   ============================================================ */

/* ---- DISABLE page-entry flash animation ----
   theme.css sets main.animate { opacity:0; transform:translateY(25px) }
   and JS adds .loaded after DOM ready — this causes a 0.5s blank flash
   on every page navigation. Override to make content immediately visible. */
main.animate,
main.animate.loaded {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  height: auto !important;
}

/* ---- Prevent gray placeholder boxes on images ----
   Browser shows gray rect for lazy images before they load.
   Above-fold images now have loading=eager via PHP filter,
   but this CSS removes any residual placeholder background. */
img {
  background: transparent !important;
  color: transparent;
}
img[src=""],
img:not([src]) {
  visibility: hidden;
}
/* Logo: fixed dimensions prevent layout shift */
.custom-logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 56px;
}
.bottom-header .left-side {
  min-width: 120px;
}

/* ---- HEADER ---- */

header {
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}

/* CTA button "Nimm Kontakt" */
.ct-top {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45) !important;
  border-radius: 5px;
  padding: 5px 14px !important;
  margin: 0 4px 0 12px !important;
  font-size: 12px;
  letter-spacing: 0.3px;
  transition: background 0.18s, border-color 0.18s;
}
.ct-top:hover {
  background: rgba(255, 255, 255, 0.26) !important;
  text-shadow: none;
}

/* Email link subtle style */
.top-header .phones a {
  opacity: 0.88;
  transition: opacity 0.15s;
}
.top-header .phones a:hover {
  opacity: 1;
}

/* Bottom header white background */
.bottom-header {
  background: #fff;
  padding: 12px 0;
  border-bottom: 2px solid #e8ecf5;
  transition: box-shadow 0.25s, padding 0.25s;
}
.bottom-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.10);
  padding: 10px 0;
}
.bottom-header .bhb {
  align-items: center;
}

/* Top header hide-on-scroll */
.top-header {
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
  max-height: 60px;
  overflow: hidden;
}
.top-header.hidden {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

/* Category menu underline animation */
.category-menu li a {
  position: relative;
  padding-bottom: 3px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
.category-menu li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #0767E8;
  border-radius: 2px;
  transition: width 0.22s ease;
}
.category-menu li a:hover::after,
.category-menu li.current-menu-item a::after {
  width: 100%;
}

/* Main nav link hover */
.top-header .main-menu ul li a {
  transition: color 0.15s, opacity 0.15s;
}
.top-header .main-menu ul li a:hover {
  opacity: 0.78;
}
.top-header .main-menu ul li.current-menu-item a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Language switcher in top-header */
.int-lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.int-lang-switcher a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.7) !important;
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s;
  line-height: 1.4;
}
.int-lang-switcher a:hover,
.int-lang-switcher a.active {
  background: rgba(255,255,255,0.20);
  color: #fff !important;
  border-color: rgba(255,255,255,0.65);
}

/* ── Service phone in top-header right ── */
.header-service-phone {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  margin-right: 8px;
  white-space: nowrap;
}
.header-service-phone a {
  color: rgba(255,255,255,0.9) !important;
  text-decoration: none;
  transition: color 0.15s;
}
.header-service-phone a:hover { color: #fff !important; }
@media (max-width: 1100px) { .header-service-phone { display: none; } }

/* ====================================================
   PRE-FOOTER CTA BANNER
==================================================== */
.prefooter-cta {
  background: linear-gradient(135deg, #0f2557 0%, #0767E8 100%);
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}
.prefooter-cta::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}
.prefooter-cta::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 10%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}
.prefooter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  z-index: 1;
}
.prefooter-text h3 {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.3;
}
.prefooter-text p {
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  margin: 0;
}
.prefooter-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.prefooter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
  white-space: nowrap;
  cursor: pointer;
}
.prefooter-btn-outline {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.45);
  color: #fff !important;
}
.prefooter-btn-outline:hover {
  background: rgba(255,255,255,0.22);
  color: #fff !important;
  text-shadow: none;
}
.prefooter-btn-primary {
  background: #fff;
  color: #0f2557 !important;
  border: 1px solid transparent;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.prefooter-btn-primary:hover {
  background: #f0f6ff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
  color: #0f2557 !important;
  text-shadow: none;
}

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

/* Accent gradient line on top */
.footer {
  background: linear-gradient(160deg, #1a2f6a 0%, #2b4480 100%);
}
.footer::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #0767E8 0%, #38bdf8 50%, #0767E8 100%);
}

/* Remove old top-footer flex */
.top-footer {
  display: block;
  padding-bottom: 0;
  border-bottom: none;
}

/* ---- Column grid ---- */
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1.1fr 1.1fr 1.8fr;
  gap: 40px;
  padding: 52px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Column heading */
.footer-col-title {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #7d98ca;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* ---- Brand column ---- */
.footer-col-brand .footer-logo {
  margin-bottom: 16px;
}
.footer-logo-svg-wrap svg { display: block; }
.footer-col-brand .footer-logo img {
  width: 130px !important;
  height: auto;
  margin: 0 !important;
  float: none !important;
}
.footer-col-brand .footer-tagline {
  font-size: 13px;
  line-height: 1.75;
  color: #b8c7e4;
  margin: 12px 0 20px;
  max-width: 280px;
}
.footer-contact-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #6c86c2;
  margin-bottom: 2px;
}
.footer-contact-item > div {
  display: flex;
  flex-direction: column;
}
.footer-contact-item > div a {
  line-height: 1.7;
}
.footer-social-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #6c86c2;
  margin-bottom: 10px;
}

/* Social icons - round buttons */
.footer-col-brand .soc-icons {
  display: flex !important;
  flex-direction: row !important;
  gap: 10px;
  padding: 0 !important;
}
.footer-col-brand .soc-icons a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s, transform 0.18s;
}
.footer-col-brand .soc-icons a:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

/* ---- Nav link columns ---- */
.footer-nav-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.footer-nav-list li {
  display: block !important;
  margin: 0 0 9px !important;
}
.footer-nav-list li a {
  color: #b8c7e4;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  transition: color 0.15s, padding-left 0.15s;
  display: inline-block;
}
.footer-nav-list li a:hover {
  color: #fff;
  padding-left: 4px;
}
.footer-nav-list .sub-menu {
  display: none;
}

/* ---- Contact column ---- */
.footer-col-contact .footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: #b8c7e4;
  font-size: 13px;
  line-height: 1.5;
}
.footer-col-contact .footer-contact-item .footer-contact-icon {
  flex-shrink: 0;
  margin-top: 1px;
  opacity: 0.6;
  display: flex;
}
.footer-col-contact .footer-contact-item a {
  color: #b8c7e4;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col-contact .footer-contact-item a:hover {
  color: #fff;
}
.footer-contact-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 18px 0;
}

/* ---- Newsletter inline form ---- */
.footer-nl-desc {
  font-size: 12px;
  color: #b8c7e4;
  line-height: 1.5;
  margin: 0 0 14px;
}
.footer-nl-form {
  margin-top: 4px;
}
.footer-nl-row {
  display: flex;
  gap: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  transition: border-color 0.18s, background 0.18s;
}
.footer-nl-row:focus-within {
  border-color: rgba(255,255,255,0.42);
  background: rgba(255,255,255,0.1);
}
.footer-nl-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 9px 12px;
  font-size: 13px;
  color: #fff;
  font-family: inherit;
}
.footer-nl-input::placeholder {
  color: rgba(255,255,255,0.4);
}
.footer-nl-btn {
  background: #0767E8;
  border: none;
  cursor: pointer;
  padding: 0 14px;
  display: flex;
  align-items: center;
  color: #fff;
  transition: background 0.18s;
  flex-shrink: 0;
}
.footer-nl-btn:hover {
  background: #0555c4;
}
.footer-nl-legal {
  font-size: 11px;
  color: #5d78a8;
  margin: 7px 0 0;
  line-height: 1.4;
}

/* ---- Bottom bar ---- */
.footer-bottom {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 22px !important;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .copyright {
  font-size: 12px;
  color: #5d78a8;
  font-weight: 500;
}
.footer-legal-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-legal-links a {
  font-size: 12px;
  color: #5d78a8;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-legal-links a:hover {
  color: #b8c7e4;
  text-shadow: none;
}
/* legacy footer-menu (kept for compat) */
.footer-bottom .footer-menu {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0 20px;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}
.footer-bottom .footer-menu li {
  display: block !important;
  margin: 0 !important;
}
.footer-bottom .footer-menu a {
  font-size: 12px !important;
  color: #5d78a8 !important;
  transition: color 0.15s;
}
.footer-bottom .footer-menu a:hover {
  color: #b8c7e4 !important;
  text-shadow: none !important;
}

/* ====================================================
   BACK TO TOP BUTTON
==================================================== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 42px;
  height: 42px;
  background: #2b4480;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s, background 0.18s;
  z-index: 800;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: #0767E8;
  transform: translateY(-2px);
}

/* ====================================================
   RESPONSIVE
==================================================== */
@media (max-width: 1100px) {
  .prefooter-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .footer-cols {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 28px;
  }
  .footer-col-contact {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 40px;
    align-items: start;
  }
  .footer-col-contact .footer-col-title {
    grid-column: 1 / -1;
  }
  .footer-contact-divider {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  header {
    position: relative;
  }
  .prefooter-cta {
    padding: 36px 0;
  }
  .prefooter-text h3 {
    font-size: 18px;
  }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
    padding: 36px 0 28px;
  }
  .footer-col-brand {
    grid-column: 1 / -1;
  }
  .footer-col-contact {
    grid-column: 1 / -1;
    display: block;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .back-to-top {
    bottom: 16px;
    left: 16px;
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 480px) {
  .footer-cols {
    grid-template-columns: 1fr;
  }
  .footer-col-brand {
    grid-column: auto;
  }
  .prefooter-actions {
    width: 100%;
  }
  .prefooter-btn {
    flex: 1;
    justify-content: center;
  }
}

/* ====================================================
   ABOUT PAGES (Über uns section)
==================================================== */
.page-about-v2 {
  padding: 40px 0 72px;
}
.about-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

/* ─── Sidebar ─── */
.about-sidebar-inner {
  position: sticky;
  top: 90px;
  background: #f7faff;
  border: 1px solid #e0e8f5;
  border-radius: 10px;
  padding: 24px 20px;
}
.about-sidebar-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #9aabcc;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e0e8f5;
}
.about-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}
.about-nav li {
  margin: 0 0 4px;
}
.about-nav li a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: #5d6b8a;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.about-nav li a:hover {
  background: #e8f0fe;
  color: #1a2f6a;
  text-shadow: none;
}
.about-nav li.active a {
  background: #0767E8;
  color: #fff;
  font-weight: 600;
}
.about-nav li.active a:hover {
  background: #0555c4;
}

/* ─── Content area ─── */
.about-page-title {
  font-size: 28px;
  font-weight: 800;
  color: #1a2f6a;
  margin: 0 0 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e8ecf5;
}
.about-body {
  font-size: 15px;
  color: #3a4a6a;
  line-height: 1.8;
}
.about-body h2, .about-body h3 {
  color: #1a2f6a;
  margin-top: 32px;
}
.about-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.about-section-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a2f6a;
  margin: 36px 0 18px;
}
.about-lead {
  font-size: 16px;
  color: #5d6b8a;
  line-height: 1.75;
  margin-bottom: 36px;
  padding: 20px 24px;
  background: #f7faff;
  border-left: 3px solid #0767E8;
  border-radius: 0 8px 8px 0;
}
.about-divider {
  border: none;
  border-top: 1px solid #e0e8f5;
  margin: 32px 0;
}

/* ─── Clients sectors ─── */
.clients-sectors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}
.clients-sector {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: #f7faff;
  border: 1px solid #e0e8f5;
  border-radius: 10px;
  align-items: flex-start;
}
.clients-sector-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e8f0fe;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0767E8;
}
.clients-sector h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1a2f6a;
  margin: 0 0 6px;
}
.clients-sector p {
  font-size: 13px;
  color: #5d6b8a;
  margin: 0;
  line-height: 1.6;
}
.clients-cta {
  padding: 28px 28px;
  background: linear-gradient(135deg, #0f2557 0%, #0767E8 100%);
  border-radius: 10px;
  color: rgba(255,255,255,0.88);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.clients-cta p { margin: 0; }
.clients-cta .cta-button {
  white-space: nowrap;
  background: #fff;
  color: #1a2f6a !important;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
  flex-shrink: 0;
  transition: background 0.18s;
}
.clients-cta .cta-button:hover {
  background: #f0f6ff;
  text-shadow: none;
}

/* ─── Partner/contact persons ─── */
.contact-persons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}
.contact-person {
  text-align: center;
}
.contact-person img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 12px;
}
.partners-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.partner-logo img {
  max-height: 60px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.6;
  transition: filter 0.2s, opacity 0.2s;
}
.partner-logo img:hover {
  filter: none;
  opacity: 1;
}
.terms-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
.terms-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: #f7faff;
  border: 1px solid #e0e8f5;
  border-radius: 10px;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.terms-item:hover {
  box-shadow: 0 4px 18px rgba(7,103,232,0.09);
  border-color: #c0d6f8;
}
.terms-item-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e8f0fe;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0767E8;
}
.terms-item-text {
  font-size: 14px;
  line-height: 1.6;
  color: #3d4f70;
  flex: 1;
}
.terms-item-text p { margin: 0; }
.terms-item-img-wrap {
  flex-shrink: 0;
  gap: 10px;
  text-align: center;
  padding: 16px;
  border: 1px solid #e0e8f5;
  border-radius: 8px;
  font-size: 13px;
  color: #5d6b8a;
}
.terms-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
}
@media (max-width: 640px) {
  .terms-group { grid-template-columns: 1fr; }
}

/* ─── Blog missing thumbnail ─── */
.blog-thumb-placeholder {
  width: 100%;
  padding-top: 56%;
  position: relative;
  background: linear-gradient(135deg, #e8ecf5 0%, #d0daf0 100%);
}
.blog-thumb-placeholder svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ─── About responsive ─── */
@media (max-width: 860px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .about-sidebar-inner {
    position: static;
  }
  .about-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .about-nav li a {
    padding: 6px 14px;
    border: 1px solid #e0e8f5;
  }
  .clients-sectors {
    grid-template-columns: 1fr;
  }
}

/* ---- BANNER ARROWS (feedback-slider-2) ---- */
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.40);
  border: 2px solid rgba(255,255,255,0.70);
  border-radius: 50%;
  width: 54px;
  height: 54px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s, border-color 0.2s;
  padding: 0;
  line-height: 1;
  visibility: visible !important;
  opacity: 1 !important;
}
/* hide default Slick arrow character */
.banner-arrow::before {
  display: none !important;
  content: none !important;
}
.banner-arrow:hover {
  background: rgba(0, 0, 0, 0.60);
  border-color: #fff;
}
.banner-arrow-prev { left: 20px; }
.banner-arrow-next { right: 20px; }
@media (max-width: 600px) {
  .banner-arrow { width: 40px; height: 40px; }
  .banner-arrow-prev { left: 10px; }
  .banner-arrow-next { right: 10px; }
}

/* ---- CONTACT PERSON CARDS (Zusammenarbeit page) ---- */
.contact-persons-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 24px 0 8px;
}
.contact-person-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #f7faff;
  border: 1px solid #e0e8f5;
  border-radius: 14px;
  padding: 20px 24px;
  flex: 1 1 280px;
  min-width: 260px;
  max-width: 420px;
}
.cpc-photo {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #dce8fb;
  background: #e8f0fe;
}
.cpc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cpc-photo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8f0fe;
}
.cpc-info {
  flex: 1;
  min-width: 0;
}
.cpc-name {
  font-size: 16px;
  font-weight: 700;
  color: #1a2f6a;
  margin: 0 0 2px;
}
.cpc-position {
  font-size: 13px;
  color: #6b7fa8;
  margin: 0 0 12px;
  line-height: 1.4;
}
.cpc-contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cpc-contact-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #0767E8;
  text-decoration: none;
  word-break: break-all;
}
.cpc-contact-link:hover { text-decoration: underline; }
.cpc-contact-link svg { flex-shrink: 0; color: #6b7fa8; }

@media (max-width: 640px) {
  .contact-person-card { flex-direction: column; align-items: center; text-align: center; }
  .cpc-contacts { align-items: center; }
}

/* ====================================================
   FRONT-ITABLE-CIRCLE — ensure inner image div has min size
   JS sets pixel width/height dynamically; this fallback ensures
   the background image shows even if JS hasn't run yet
==================================================== */
.front-itable .front-itable-circle {
  box-sizing: content-box;
}
.front-itable .front-itable-circle > div {
  min-height: 300px;
  min-width: 300px;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100% !important;
  height: 100% !important;
}

/* ====================================================
   /PRODUKTE/ PAGE — column text alignment fix
   WP block columns default to centered in narrow cols
==================================================== */
.page-template-products .wp-block-columns p,
.page-template-products .wp-block-columns li,
.page-template-products .wp-block-columns h2,
.page-template-products .wp-block-columns h3,
.page-template-products .wp-block-column p,
.page-template-products .wp-block-column li {
  text-align: left !important;
}

/* /produkte/ — prevent blurry category images */
.page-template-products .category-image img,
.page-template-products .product-cat-img img,
.page-template-products img {
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* ====================================================
   /MISSION/ PAGE — video block wider
==================================================== */
.about-body .wp-block-video,
.about-body .wp-block-embed,
.about-body .wp-block-embed__wrapper,
.about-body iframe[src*="youtube"],
.about-body iframe[src*="youtu.be"],
.about-body iframe[src*="vimeo"] {
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 16 / 9;
  height: auto !important;
}
.about-body .wp-block-video video {
  width: 100% !important;
  height: auto !important;
}
.about-body .wp-block-embed .wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}
.about-body .wp-block-embed .wp-block-embed__wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
}

/* ====================================================
   /ZUSAMMENARBEIT/ — contact title uses wp_kses_post,
   render the inner <p> nicely instead of as heading
==================================================== */
.about-contact-title {
  font-size: 15px;
  font-weight: 400;
  color: #3a4a6a;
  margin: 8px 0 20px;
  line-height: 1.7;
}
.about-contact-title p { margin: 0; }

