/* ========================================
   FPFP Robotics Blog — Local Fonts
   ======================================== */

/* --- @font-face: Nunito Sans (latin-ext) --- */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('./fonts/nunito-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- @font-face: Nunito Sans (latin) --- */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('./fonts/nunito-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- @font-face: Work Sans (latin-ext) --- */
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('./fonts/work-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- @font-face: Work Sans (latin) --- */
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('./fonts/work-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ========================================
   FPFP Robotics Blog
   ======================================== */

/* --- Site Header (PHP) --- */
.fpfp-site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #3D9BE9;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.fpfp-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}
.fpfp-logo {
  display: flex;
  align-items: center;
  text-decoration: none !important;
  flex-shrink: 0;
}
.fpfp-logo:hover { opacity: 0.9; }
.fpfp-site-header .fpfp-logo-img {
  height: 48px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

/* --- Navigation --- */
.fpfp-nav {
  display: flex;
  align-items: center;
}
.fpfp-nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.fpfp-nav-menu > li { position: relative; }
.fpfp-nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  text-decoration: none;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.5rem 0.85rem;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.fpfp-nav-menu > li > a svg { opacity: 0.7; transition: transform 0.2s; }
.fpfp-nav-menu > li:hover > a svg { transform: rotate(180deg); }
.fpfp-nav-menu > li > a:hover { opacity: 0.8; }
.fpfp-nav-active > a { border-bottom: 2px solid #fff !important; }

/* --- Submenus --- */
.fpfp-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(21,64,81,0.97);
  border-radius: 8px;
  padding: 1rem 0.5rem;
  min-width: 220px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
  z-index: 1000;
  flex-direction: column;
}
.fpfp-submenu-wide {
  min-width: 600px;
  padding: 1.25rem;
  left: 0;
  transform: none;
}
.has-submenu:hover > .fpfp-submenu { display: flex; }
.has-submenu:hover > .fpfp-submenu-wide { display: flex; flex-direction: row; gap: 1.5rem; }
.fpfp-submenu a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  transition: background-color 0.15s;
  white-space: nowrap;
}
.fpfp-submenu a:hover { background: rgba(61,155,233,0.25); }
.fpfp-submenu-col { display: flex; flex-direction: column; min-width: 160px; }
.fpfp-submenu-heading {
  display: block;
  color: #3D9BE9;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.75rem 0.2rem;
}
.fpfp-submenu-highlight {
  color: #3D9BE9 !important;
  font-weight: 700 !important;
  margin-top: 0.5rem;
}

/* CTA Button */
.fpfp-cta {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 1.25rem;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 20px;
  margin-left: 1rem;
  transition: all 0.2s;
  white-space: nowrap;
}
.fpfp-cta:hover { background: #fff; color: #3D9BE9; border-color: #fff; }

/* Mobile Toggle */
.fpfp-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.fpfp-nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; transition: all 0.3s; }

/* Header spacer - hide since header is PHP */
.header-spacer { display: none !important; }

/* Mobile */
@media (max-width: 960px) {
  .fpfp-header-inner { padding: 0.75rem 1rem; }
  .fpfp-nav-toggle { display: flex; }
  .fpfp-nav-menu {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #3D9BE9;
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    overflow-y: auto;
    z-index: 1000;
  }
  .fpfp-nav.is-open .fpfp-nav-menu { display: flex; }
  .fpfp-nav.is-open .fpfp-nav-toggle span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
  .fpfp-nav.is-open .fpfp-nav-toggle span:nth-child(2) { opacity: 0; }
  .fpfp-nav.is-open .fpfp-nav-toggle span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
  .fpfp-nav-menu > li { width: 100%; }
  .fpfp-nav-menu > li > a { padding: 0.75rem 0; font-size: 1.1rem; }
  .fpfp-submenu, .fpfp-submenu-wide {
    position: static; transform: none; background: rgba(0,0,0,0.1);
    border-radius: 6px; box-shadow: none; min-width: auto; padding: 0.5rem; margin-bottom: 0.5rem;
  }
  .fpfp-submenu-wide { flex-direction: column !important; }
  .fpfp-site-header .fpfp-logo-img { height: 38px; }
  .fpfp-cta { margin-left: 0; margin-top: 1rem; }
}

/* ========================================
   Blog Index: Grid Cards
   ======================================== */

/* Card container */
.blog-card {
  background: #fcfcfd;
  border: 1px solid #e8e8e8;
  border-radius: 16px !important;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.blog-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

/* Card image: fixed aspect ratio, no extra border-radius needed (overflow:hidden on card) */
.blog-card .wp-block-post-featured-image {
  margin: 0 !important;
  overflow: hidden;
}
.blog-card .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 !important;
  transition: transform 0.3s ease;
}
.blog-card:hover .wp-block-post-featured-image img {
  transform: scale(1.04);
}

/* Card title */
.blog-card .wp-block-post-title {
  font-size: 1.15rem !important;
  line-height: 1.3 !important;
  margin-bottom: 0.4rem !important;
}
.blog-card .wp-block-post-title a {
  text-decoration: none !important;
  color: var(--wp--preset--color--dark-teal);
  transition: color 0.2s;
  font-size: inherit !important;
  line-height: inherit !important;
}
.blog-card .wp-block-post-title a:hover {
  color: var(--wp--preset--color--primary);
}

/* Card excerpt */
.blog-card .wp-block-post-excerpt {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #555;
  margin-top: 0 !important;
  flex-grow: 1;
}
.blog-card .wp-block-post-excerpt__excerpt {
  margin-bottom: 0;
}
/* Hide "Weiterlesen" link in grid cards — the whole card image+title is clickable */
.blog-card .wp-block-post-excerpt__more-text {
  display: none;
}

/* Grid gap */
.wp-block-post-template.is-layout-grid {
  gap: 1.75rem !important;
}

/* Pagination */
.wp-block-query-pagination { margin-top: 2.5rem; }
.wp-block-query-pagination-numbers .page-numbers {
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s;
}
.wp-block-query-pagination-numbers .page-numbers.current {
  background: #3D9BE9;
  color: #fff;
}
.wp-block-query-pagination-numbers .page-numbers:hover:not(.current) {
  background: #f0f0f0;
}

/* --- Footer --- */
.footer-heading {
  color: #3D9BE9;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
.site-footer a { color: #fff !important; text-decoration: none; transition: opacity 0.2s; }
.site-footer a:hover { opacity: 0.8; }

/* Footer Social Icons - einheitlich weiß */
.footer-social .wp-block-social-link {
  transition: transform 0.2s;
}
.footer-social .wp-block-social-link:hover {
  transform: scale(1.15);
}
.footer-social .wp-block-social-link a {
  color: #fff !important;
}
.footer-social .wp-block-social-link svg {
  fill: #fff !important;
}
.footer-social .wp-block-social-link {
  background-color: transparent !important;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 50%;
}
.footer-social .wp-block-social-link:hover {
  border-color: #fff;
  background-color: rgba(255,255,255,0.1) !important;
}

/* Footer Icons Row */
.footer-icons-row {
  align-items: center;
}

/* IT-Recht Kanzlei Seal */
.footer-seal {
  display: inline-block;
  opacity: 0.85;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.footer-seal:hover {
  opacity: 1;
}
.footer-seal img {
  display: block;
  width: 60px;
  height: 60px;
}

/* ========================================
   Typography & Rhythm (UX Optimization)
   ======================================== */

/* --- Headings: Tight line-height for visual cohesion --- */
h1, .wp-block-post-title {
  line-height: 1.2 !important;
  letter-spacing: -0.01em;
}
h2 { line-height: 1.25 !important; }
h3 { line-height: 1.3 !important; }
h4, h5, h6 { line-height: 1.35 !important; }

/* --- Blog Index: Card Layout --- */
.wp-block-post-title {
  margin-bottom: 0.25rem !important;
  font-size: 1.5rem !important;
}
.wp-block-post-title a {
  line-height: 1.25 !important;
  font-size: inherit !important;
}

/* Meta row (date + author) tighter to title */
.wp-block-query .wp-block-group:has(.wp-block-post-date) {
  margin-top: 0.35rem !important;
  margin-bottom: 0.75rem !important;
  color: #666;
  font-size: 0.85rem !important;
  gap: 0.4rem;
}

/* Excerpt: slightly tighter */
.wp-block-post-excerpt {
  line-height: 1.6;
  color: #444;
  margin-top: 0 !important;
}
.wp-block-post-excerpt__excerpt {
  margin-bottom: 0.75rem;
}

/* Card spacing: breathable but compact */
.wp-block-query .wp-block-group[style*="border-bottom"] {
  padding-bottom: 2rem !important;
  margin-bottom: 2rem !important;
}

/* --- Single Post: Content Rhythm --- */

/* Post title on single view */
.wp-block-post-content h1,
body.single h1 {
  font-size: 2.25rem;
  line-height: 1.2 !important;
  margin-bottom: 0.5rem;
}

/* Subheadings in article body need breathing room above, tight below */
.wp-block-post-content h2 {
  margin-top: 2.5rem !important;
  margin-bottom: 0.75rem !important;
  padding-top: 0.5rem;
  border-top: 1px solid #eee;
}
.wp-block-post-content h2:first-child {
  border-top: none;
  margin-top: 0 !important;
  padding-top: 0;
}
.wp-block-post-content h3 {
  margin-top: 1.75rem !important;
  margin-bottom: 0.5rem !important;
}

/* Body text in post */
.wp-block-post-content p {
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* Lists in posts: consistent spacing */
.wp-block-post-content ul,
.wp-block-post-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}
.wp-block-post-content li {
  line-height: 1.6;
  margin-bottom: 0.35rem;
}

/* Links in content: subtle underline for scannability */
.wp-block-post-content a {
  text-decoration: underline;
  text-decoration-color: rgba(61, 155, 233, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s;
}
.wp-block-post-content a:hover {
  text-decoration-color: rgba(61, 155, 233, 1);
}

/* Category/Tag pills at bottom of post */
.wp-block-post-terms {
  font-size: 0.85rem;
  color: #666;
}
.wp-block-post-terms a {
  color: var(--wp--preset--color--primary);
  text-decoration: none;
  padding: 0.15rem 0.5rem;
  border: 1px solid rgba(61, 155, 233, 0.25);
  border-radius: 3px;
  transition: all 0.15s;
  display: inline-block;
  margin: 0.15rem 0.25rem 0.15rem 0;
}
.wp-block-post-terms a:hover {
  background: rgba(61, 155, 233, 0.08);
  border-color: rgba(61, 155, 233, 0.5);
}

/* ========================================
   Mobile & Responsive
   ======================================== */

/* Mobile content padding — prevent text from touching screen edges */
@media (max-width: 768px) {
  /* Main content area needs horizontal breathing room */
  .wp-block-group:has(.wp-block-query),
  .wp-block-query,
  main.wp-block-group,
  .wp-site-blocks > main {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  /* Post title: scale down significantly on mobile */
  h1, .wp-block-post-title, .wp-block-post-title a {
    font-size: 1.5rem !important;
    line-height: 1.25 !important;
  }

  /* H2 in blog index cards — much smaller on mobile */
  h2 {
    font-size: 1.25rem !important;
  }

  /* H2 inside article content */
  .wp-block-post-content h2 {
    font-size: 1.35rem !important;
  }

  /* H3 inside article content */
  .wp-block-post-content h3 {
    font-size: 1.125rem !important;
  }

  /* Blog grid: 1 column on mobile */
  .wp-block-post-template.is-layout-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* Featured image: full bleed with rounded corners inset */
  .wp-block-post-featured-image img {
    border-radius: 4px;
  }

  /* Excerpt text */
  .wp-block-post-excerpt {
    font-size: 0.95rem;
  }

  /* Footer columns stack on mobile */
  .site-footer .wp-block-columns {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* Tablet tweaks */
@media (min-width: 769px) and (max-width: 960px) {
  main.wp-block-group,
  .wp-site-blocks > main {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }

  /* Blog grid: 2 columns on tablet */
  .wp-block-post-template.is-layout-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  h1, .wp-block-post-title, .wp-block-post-title a {
    font-size: 1.75rem !important;
  }

  h2 {
    font-size: 1.4rem !important;
  }
}

/* ========================================
   Utility: fpfp-grid (2-column content grid)
   ======================================== */

/* Apply class "fpfp-grid" to a Group block in Gutenberg.
   Uses CSS multi-column layout so heading+paragraph pairs
   stay together (no splitting across columns).
   Works in both Classic Themes (with inner-container) and
   Block Themes (direct children, no wrapper). */
.fpfp-grid,
.fpfp-grid > .wp-block-group__inner-container {
  columns: 1;
  column-gap: 2.5rem;
  column-fill: balance;
}
.fpfp-grid h3.wp-block-heading {
  break-after: avoid;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.fpfp-grid h3.wp-block-heading:first-child {
  margin-top: 0;
}
.fpfp-grid h3.wp-block-heading + p {
  break-before: avoid;
  break-inside: avoid;
  margin-bottom: 1.5rem;
}

@media (min-width: 769px) {
  .fpfp-grid,
  .fpfp-grid > .wp-block-group__inner-container {
    columns: 2;
  }
}

/* ========================================
   Table of Contents (TOC Block Plugin)
   ======================================== */

/* TOC container: subtle box with blue left accent */
.wp-block-telex-block-table-of-contents {
  background: #f8fafb !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 3px solid #3D9BE9 !important;
  border-radius: 6px !important;
  padding: 1rem 1.25rem !important;
  margin: 1.5rem 0 2rem !important;
  font-family: 'Nunito Sans', sans-serif;
}

/* TOC title: compact */
.wp-block-telex-block-table-of-contents .table-of-contents-title {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: var(--wp--preset--color--dark-teal, #154051) !important;
  margin: 0 0 0.5rem 0 !important;
  line-height: 1.3;
}

/* TOC list items: reduced spacing */
.wp-block-telex-block-table-of-contents .table-of-contents-item {
  margin: 0.15rem 0 !important;
  line-height: 1.35 !important;
}
.wp-block-telex-block-table-of-contents .table-of-contents-item a {
  padding: 0.1rem 0 !important;
  font-size: 0.9rem;
}

/* Sub-items (level-3+): slightly smaller, tighter */
.wp-block-telex-block-table-of-contents .table-of-contents-item.level-3 {
  margin-left: 0.75rem !important;
}
.wp-block-telex-block-table-of-contents .table-of-contents-item.level-3 a {
  font-size: 0.85rem;
}
.wp-block-telex-block-table-of-contents .table-of-contents-item.level-4 {
  margin-left: 1.5rem !important;
}
.wp-block-telex-block-table-of-contents .table-of-contents-item.level-4 a {
  font-size: 0.825rem;
}

/* ========================================
   Comments: Completely Hidden
   ======================================== */
.wp-block-comments,
.wp-block-post-comments-form,
.comment-respond,
.comments-area {
  display: none !important;
}

/* ========================================
   Tables: Spec & Comparison
   ======================================== */

/* Base table styling for article tables */
.wp-block-post-content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.5;
}
.wp-block-post-content .wp-block-table th {
  background: #154051;
  color: #fff;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.75rem 1rem;
  text-align: left;
}
.wp-block-post-content .wp-block-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #e8e8e8;
  vertical-align: top;
}
.wp-block-post-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
  background: #f8fafb;
}
.wp-block-post-content .wp-block-table.is-style-stripes tbody tr:nth-child(even) {
  background: #fff;
}

/* Spec table: first column bold labels */
.fpfp-spec-table td:first-child {
  font-weight: 600;
  color: #154051;
  white-space: nowrap;
  width: 40%;
}

/* Comparison table: highlight Pro column */
.fpfp-compare-table th:last-child {
  background: #3D9BE9;
}
.fpfp-compare-table td:first-child {
  font-weight: 600;
  color: #154051;
}

/* Table figure: remove default margins */
.wp-block-post-content figure.wp-block-table {
  margin: 1.5rem 0 2rem;
}

/* Mobile table: horizontal scroll */
@media (max-width: 600px) {
  .wp-block-post-content figure.wp-block-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .wp-block-post-content .wp-block-table table {
    min-width: 480px;
  }
  .fpfp-spec-table td:first-child {
    white-space: normal;
    width: 45%;
  }
}

/* ========================================
   ROI Highlight Box
   ======================================== */
.fpfp-roi-box {
  background: linear-gradient(135deg, #f0f9ff 0%, #e6f4ff 100%);
  border: 1px solid #bde9fb;
  border-left: 4px solid #3D9BE9;
  border-radius: 8px;
  padding: 1.5rem 1.75rem !important;
  margin: 2rem 0 !important;
}
.fpfp-roi-box h3 {
  color: #154051;
  margin-top: 0 !important;
  margin-bottom: 1rem !important;
  padding-top: 0 !important;
  border-top: none !important;
  font-size: 1.15rem;
}
.fpfp-roi-box .wp-block-table table {
  background: transparent;
  margin-bottom: 0.75rem;
}
.fpfp-roi-box .wp-block-table td {
  border-bottom-color: rgba(61, 155, 233, 0.15);
  padding: 0.5rem 0.75rem;
}
.fpfp-roi-box .wp-block-table td:first-child {
  font-weight: 500;
  color: #2B80A1;
}
.fpfp-roi-box .wp-block-table tr:last-child td {
  border-bottom: 2px solid #3D9BE9;
  font-weight: 700;
  font-size: 1rem;
}
/* ROI table: no striped background */
.fpfp-roi-table.is-style-stripes tbody tr:nth-child(odd),
.fpfp-roi-table.is-style-stripes tbody tr:nth-child(even),
.fpfp-roi-table tbody tr {
  background: transparent !important;
}

@media (max-width: 600px) {
  .fpfp-roi-box {
    padding: 1rem 1.25rem !important;
  }
}

/* ========================================
   Float Image (right-aligned in text)
   ======================================== */
.fpfp-float-right {
  float: right;
  max-width: 320px;
  margin: 0 0 1.5rem 2rem !important;
}
@media (max-width: 768px) {
  .fpfp-float-right {
    float: none;
    max-width: 100%;
    margin: 1rem 0 1.5rem !important;
  }
}

/* ========================================
   Yoast FAQ Block
   ======================================== */
.wp-block-yoast-faq-block {
  margin: 2rem 0 !important;
}
.schema-faq-section {
  border-bottom: 1px solid #e8e8e8;
  padding: 1rem 0;
}
.schema-faq-section:last-child {
  border-bottom: none;
}
.schema-faq-question {
  display: block;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #154051;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}
.schema-faq-answer {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #333;
  margin: 0;
}
.schema-faq-answer a {
  color: #3D9BE9;
}

/* ========================================
   Columns in Post Content
   ======================================== */
.wp-block-post-content .wp-block-columns {
  gap: 2rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
  .wp-block-post-content .wp-block-columns {
    flex-direction: column !important;
    gap: 1rem;
  }
  .wp-block-post-content .wp-block-column {
    flex-basis: 100% !important;
  }
}

/* Image captions */
.wp-block-post-content .wp-element-caption {
  font-size: 0.82rem;
  color: #777;
  text-align: center;
  margin-top: 0.35rem;
  line-height: 1.4;
}

/* ========================================
   Skills in Zahlen — Card Grid
   ======================================== */
.fpfp-skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0 2.5rem;
}
.fpfp-skills-card {
  background: #f4f9fe;
  border-radius: 14px;
  padding: 1.5rem 1.25rem 1.25rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  position: relative;
  overflow: hidden;
}
.fpfp-skills-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3D9BE9 0%, #2B80A1 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.fpfp-skills-card:hover {
  box-shadow: 0 8px 24px rgba(61, 155, 233, 0.12);
  transform: translateY(-2px);
}
.fpfp-skills-card:hover::before {
  opacity: 1;
}
.fpfp-skills-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 12px;
  color: #3D9BE9;
  box-shadow: 0 2px 8px rgba(61, 155, 233, 0.1);
  margin-bottom: 0.75rem;
}
.fpfp-skills-label {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #2B80A1;
  margin-bottom: 0.35rem;
}
.fpfp-skills-value {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #154051;
  line-height: 1.15;
  margin-bottom: 0.3rem;
}
.fpfp-skills-value span {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2B80A1;
}
.fpfp-skills-sub {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.78rem;
  color: #6b8a9a;
  line-height: 1.35;
}

/* Skills Grid: Tablet 2 cols, Mobile 1 col */
@media (max-width: 960px) {
  .fpfp-skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .fpfp-skills-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .fpfp-skills-card {
    padding: 1.25rem 1rem 1rem;
    display: grid;
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
    gap: 0 0.75rem;
    align-items: start;
  }
  .fpfp-skills-icon {
    grid-row: 1 / 3;
    margin-bottom: 0;
    align-self: center;
  }
  .fpfp-skills-label {
    margin-bottom: 0.15rem;
  }
  .fpfp-skills-value {
    font-size: 1.5rem;
    margin-bottom: 0;
  }
  .fpfp-skills-sub {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
  }
}

/* ========================================
   BellaBot Pro — Feature Icons Grid
   ======================================== */
.fpfp-pro-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}
.fpfp-pro-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  padding: 1.25rem 0.75rem;
  background: #f8fafb;
  border-radius: 12px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.fpfp-pro-feature:hover {
  box-shadow: 0 6px 20px rgba(61, 155, 233, 0.1);
  transform: translateY(-2px);
}
.fpfp-pro-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: #fff;
  border-radius: 14px;
  color: #154051;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.fpfp-pro-feature span {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #154051;
  line-height: 1.3;
}

/* Pro Icons: 2 cols on mobile */
@media (max-width: 640px) {
  .fpfp-pro-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .fpfp-pro-feature {
    padding: 1rem 0.5rem;
  }
  .fpfp-pro-icon {
    width: 52px;
    height: 52px;
  }
  .fpfp-pro-icon svg {
    width: 28px;
    height: 28px;
  }
}

/* ========================================
   Split-Hero (Title left, Image right)
   ======================================== */
.fpfp-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}
.fpfp-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.fpfp-hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.fpfp-hero-meta {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.85rem;
  color: #6b8a9a;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}
.fpfp-hero-title {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 2.5rem;
  line-height: 1.15;
  font-weight: 800;
  color: #154051;
  letter-spacing: -0.01em;
  margin: 0;
}
.fpfp-hero-image {
  overflow: hidden;
  border-radius: 16px;
}
.fpfp-hero-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

/* Hero responsive */
@media (max-width: 768px) {
  .fpfp-hero {
    padding: 1.25rem 1.25rem 1.5rem;
  }
  .fpfp-hero-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .fpfp-hero-text { order: 1; }
  .fpfp-hero-image { order: 0; }
  .fpfp-hero-img { height: 220px; }
  .fpfp-hero-title { font-size: 1.75rem; }
}
@media (min-width: 769px) and (max-width: 960px) {
  .fpfp-hero { padding: 2rem; }
  .fpfp-hero-title { font-size: 2rem; }
  .fpfp-hero-img { height: 320px; }
}

/* ========================================
   Single Post: Content + Sidebar Layout
   ======================================== */

/* Grid wrapper injected via render_block filter */
.fpfp-single-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.fpfp-single-content {
  min-width: 0; /* prevent grid blowout */
}

/* Hide the WP post-title block on single (rendered by PHP hero) */
.fpfp-single-layout-outer > .wp-block-post-title {
  display: none !important;
}
/* Hide featured image block if still rendered by template */
.fpfp-single-layout-outer > .wp-block-post-featured-image {
  display: none !important;
}

/* Sidebar collapse on tablet and mobile */
@media (max-width: 960px) {
  .fpfp-single-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1.25rem;
  }
  .fpfp-sidebar {
    border-top: 1px solid #e0e4e8;
    padding-top: 2rem;
  }
}
@media (min-width: 961px) and (max-width: 1240px) {
  .fpfp-single-layout {
    padding: 0 2rem;
  }
}

/* ========================================
   Sidebar Styling
   ======================================== */

/* --- Sidebar Cards (solid white, visible on #f5f7fa) --- */
.fpfp-glass-card {
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.fpfp-glass-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.fpfp-sidebar {
  font-family: 'Nunito Sans', sans-serif;
}
.fpfp-sidebar-section {
  margin-bottom: 1rem;
}
.fpfp-sidebar-section:last-child {
  margin-bottom: 0;
}
.fpfp-sidebar-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #154051;
  margin-bottom: 0.6rem;
}
/* Robot category sections */
.fpfp-sidebar-robots {
}
/* Service section */
.fpfp-sidebar-service {
}
/* Offers section subtle separator */
.fpfp-sidebar-offers {
}

/* Neueste Beiträge */
.fpfp-sidebar-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}
.fpfp-sidebar-posts li {
  margin-bottom: 0.6rem;
}
.fpfp-sidebar-posts li:last-child {
  margin-bottom: 0;
}
.fpfp-sidebar-posts a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #333;
  transition: color 0.15s;
}
.fpfp-sidebar-posts a:hover {
  color: #3D9BE9;
}
.fpfp-sidebar-post-thumb {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
}
.fpfp-sidebar-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fpfp-sidebar-post-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
}

/* --- Sidebar Robot Grid (2-column thumbnails) --- */
.fpfp-sidebar-robot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
.fpfp-sidebar-robot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none !important;
  background: #f5f7fa;
  border-radius: 12px;
  padding: 0.6rem 0.4rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}
.fpfp-sidebar-robot-card:hover {
  box-shadow: 0 4px 12px rgba(61, 155, 233, 0.12);
  transform: translateY(-1px);
}
.fpfp-sidebar-robot-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 0.35rem;
}
.fpfp-sidebar-robot-card span {
  font-size: 0.75rem;
  font-weight: 600;
  color: #154051;
  line-height: 1.25;
  text-align: center;
}
.fpfp-sidebar-robot-card:hover span {
  color: #3D9BE9;
}
/* Additional robots as text links (no image available) */
.fpfp-sidebar-robot-more-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.5rem;
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px solid #eef1f4;
}
.fpfp-sidebar-robot-more-list a {
  font-size: 0.78rem;
  font-weight: 600;
  color: #2B80A1;
  text-decoration: none !important;
  padding: 0.2rem 0.55rem;
  background: #f0f4f7;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.fpfp-sidebar-robot-more-list a:hover {
  background: #e6f0fa;
  color: #3D9BE9;
}

.fpfp-sidebar-more {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #3D9BE9 !important;
  text-decoration: none !important;
  margin-top: 0.6rem;
  text-align: center;
  transition: opacity 0.15s;
}
.fpfp-sidebar-more:hover {
  opacity: 0.8;
}

/* --- Sidebar Service Items (icon + text) --- */
.fpfp-sidebar-service-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.fpfp-sidebar-service-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none !important;
  padding: 0.55rem 0.6rem;
  background: #f5f7fa;
  border-radius: 12px;
  transition: background 0.15s, box-shadow 0.15s;
}
.fpfp-sidebar-service-item:hover {
  background: #eef4fb;
  box-shadow: 0 2px 8px rgba(61, 155, 233, 0.08);
}
.fpfp-sidebar-service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 8px;
  color: #3D9BE9;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.fpfp-sidebar-service-text {
  display: flex;
  flex-direction: column;
}
.fpfp-sidebar-service-text strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: #154051;
  line-height: 1.3;
}
.fpfp-sidebar-service-text small {
  font-size: 0.72rem;
  color: #6b8a9a;
  line-height: 1.3;
}
.fpfp-sidebar-service-item:hover .fpfp-sidebar-service-text strong {
  color: #3D9BE9;
}

/* --- Sidebar Offer Pills (Testen & Mieten) --- */
.fpfp-sidebar-offer-pills {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.fpfp-sidebar-offer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none !important;
  font-size: 0.82rem;
  font-weight: 600;
  color: #154051;
  padding: 0.5rem 0.75rem;
  background: #f5f7fa;
  border-radius: 12px;
  border: 1px solid #e8eef3;
  transition: all 0.15s;
}
.fpfp-sidebar-offer svg {
  flex-shrink: 0;
  color: #2B80A1;
}
.fpfp-sidebar-offer:hover {
  border-color: #3D9BE9;
  background: #f0f7ff;
  color: #3D9BE9;
}
.fpfp-sidebar-offer:hover svg {
  color: #3D9BE9;
}
.fpfp-sidebar-offer--primary {
  background: linear-gradient(135deg, #3D9BE9 0%, #2B80A1 100%);
  color: #fff !important;
  border-color: transparent;
  font-weight: 700;
}
.fpfp-sidebar-offer--primary svg {
  color: #fff;
}
.fpfp-sidebar-offer--primary:hover {
  background: linear-gradient(135deg, #2B80A1 0%, #154051 100%);
  color: #fff !important;
  border-color: transparent;
}
.fpfp-sidebar-offer--primary:hover svg {
  color: #fff;
}

/* Legacy link lists (kept for backwards compat) */
.fpfp-sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.fpfp-sidebar-links a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: #444;
  text-decoration: none;
  padding: 0.3rem 0;
  transition: color 0.15s;
}
.fpfp-sidebar-links a:hover {
  color: #3D9BE9;
}

/* Kontakt CTA */
.fpfp-sidebar-cta {
  background: linear-gradient(135deg, #f0f8ff 0%, #e8f4fd 100%);
  border: 1px solid rgba(61,155,233,0.2) !important;
  border-radius: 16px;
  padding: 1.25rem !important;
}
.fpfp-sidebar-cta p {
  font-size: 0.85rem;
  color: #444;
  line-height: 1.5;
  margin: 0 0 0.75rem;
}
.fpfp-sidebar-btn {
  display: block;
  text-align: center;
  background: #3D9BE9;
  color: #fff !important;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background 0.2s;
  margin-bottom: 0.75rem;
}
.fpfp-sidebar-btn:hover {
  background: #2B80A1;
}
.fpfp-sidebar-contact {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.fpfp-sidebar-contact a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #2B80A1;
  text-decoration: none;
  transition: color 0.15s;
}
.fpfp-sidebar-contact a:hover {
  color: #3D9BE9;
}

/* ========================================
   Blog Index: Hero Section
   ======================================== */
.fpfp-blog-hero {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1rem 2.5rem;
}
.fpfp-blog-hero-label {
  display: inline-block;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #3D9BE9;
  margin-bottom: 0.75rem;
}
.fpfp-blog-hero-title {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #154051;
  margin: 0 0 1rem;
}
.fpfp-blog-hero-text {
  font-family: 'Work Sans', sans-serif;
  font-size: 1.1rem;
  line-height: 1.65;
  color: #5a6b75;
  margin: 0;
}

/* Blog Hero: responsive */
@media (max-width: 768px) {
  .fpfp-blog-hero {
    padding: 2rem 0.5rem 1.75rem;
  }
  .fpfp-blog-hero-title {
    font-size: 1.75rem;
    line-height: 1.18;
  }
  .fpfp-blog-hero-text {
    font-size: 0.95rem;
  }
}
@media (min-width: 769px) and (max-width: 960px) {
  .fpfp-blog-hero-title {
    font-size: 2.25rem;
  }
}

/* ========================================
   Blog Index: 2-Column Grid Override
   ======================================== */
.wp-block-post-template.is-layout-grid {
  grid-template-columns: repeat(2, 1fr) !important;
}
@media (max-width: 768px) {
  .wp-block-post-template.is-layout-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ========================================
   General
   ======================================== */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #f5f7fa;
}

/* ========================================
   Sidebar: Expert Box (B1)
   ======================================== */
.fpfp-sidebar-expert {
  text-align: center;
  padding: 0 !important;
  overflow: hidden;
}
.fpfp-expert-portrait {
  position: relative;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(135deg, #e8f0f8 0%, #f5f7fa 100%);
}
.fpfp-expert-portrait img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
  object-position: top center;
}
.fpfp-expert-info {
  padding: 1rem 1.25rem 1.25rem;
}
.fpfp-expert-name {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #154051;
  line-height: 1.2;
  margin-bottom: 0.15rem;
}
.fpfp-expert-title {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #3D9BE9;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}
.fpfp-expert-quote {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.88rem;
  font-style: italic;
  color: #444;
  line-height: 1.55;
  margin: 0 0 0.85rem;
  padding: 0.75rem;
  background: #f8fafb;
  border-left: 3px solid #3D9BE9;
  border-radius: 0 8px 8px 0;
  text-align: left;
}
.fpfp-expert-contact {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.85rem;
}
.fpfp-expert-contact a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #2B80A1;
  text-decoration: none;
  transition: color 0.15s;
}
.fpfp-expert-contact a:hover {
  color: #3D9BE9;
}

/* ========================================
   Sidebar: Category Grid (B2)
   ======================================== */
.fpfp-sidebar-categories {
}
.fpfp-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
.fpfp-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none !important;
  background: #f5f7fa;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.fpfp-category-card:hover {
  box-shadow: 0 4px 14px rgba(61, 155, 233, 0.14);
  transform: translateY(-2px);
}
.fpfp-category-card img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  display: block;
}
.fpfp-category-card span {
  display: block;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #154051;
  text-align: center;
  padding: 0.4rem 0.25rem;
  line-height: 1.25;
}
.fpfp-category-card:hover span {
  color: #3D9BE9;
}

/* ========================================
   Sidebar: Rental Box (B3)
   ======================================== */
.fpfp-sidebar-rental {
  background: linear-gradient(135deg, #f0f8ff 0%, #e8f4fd 100%) !important;
  border: 1px solid rgba(61, 155, 233, 0.2) !important;
}
.fpfp-rental-image {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.85rem;
}
.fpfp-rental-image img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}
.fpfp-rental-price {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.9rem;
  color: #2B80A1;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.fpfp-rental-price strong {
  font-size: 1.6rem;
  font-weight: 800;
  color: #154051;
  display: inline;
}
.fpfp-rental-price span {
  font-size: 0.82rem;
  font-weight: 600;
  color: #6b8a9a;
}
.fpfp-rental-text {
  font-size: 0.82rem;
  color: #444;
  line-height: 1.55;
  margin: 0 0 0.65rem;
}
.fpfp-rental-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.85rem;
}
.fpfp-rental-tag {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: #2B80A1;
  background: rgba(61, 155, 233, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  white-space: nowrap;
}

/* ========================================
   Sidebar: Event Box (B4)
   ======================================== */
.fpfp-sidebar-event {
}
.fpfp-event-image {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.fpfp-event-image img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.fpfp-event-text {
  font-size: 0.82rem;
  color: #444;
  line-height: 1.55;
  margin: 0 0 0.75rem;
}

/* Outline variant for event CTA */
.fpfp-sidebar-btn--outline {
  background: transparent;
  color: #3D9BE9 !important;
  border: 2px solid #3D9BE9;
}
.fpfp-sidebar-btn--outline:hover {
  background: #3D9BE9;
  color: #fff !important;
}
/* ========================================
   Product Page: FPF Professional Layout
   ======================================== */

.woocommerce-product-details__short-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #5a6b75;
    margin-bottom: 2rem;
}

/* Specs Table Layout */
.fpfp-product-specs {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    margin: 3rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.fpfp-product-specs h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: #154051;
}

.fpfp-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid #eef1f4;
    border-radius: 8px;
    overflow: hidden;
}

.fpfp-spec-item {
    padding: 1rem;
    border-bottom: 1px solid #eef1f4;
    display: flex;
    justify-content: space-between;
}

.fpfp-spec-label {
    font-weight: 700;
    color: #6b8a9a;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.fpfp-spec-value {
    color: #154051;
    font-weight: 600;
}

/* Service Highlights Section */
.fpfp-product-service-box {
    background: linear-gradient(135deg, #154051 0%, #2B80A1 100%);
    color: #fff;
    border-radius: 20px;
    padding: 3rem;
    margin: 4rem 0;
}

.fpfp-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.fpfp-service-item {
    text-align: center;
}

.fpfp-service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.fpfp-service-title {
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.fpfp-service-text {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.4;
}

/* Hide Price if Zero (Consultation Focus) */
.price:empty, .price:contains('0,00') { display: none; }

/* Buy Button Customization */
.single_add_to_cart_button {
    background-color: #3D9BE9 !important;
    border-radius: 30px !important;
    padding: 1rem 2rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

@media (max-width: 768px) {
    .fpfp-specs-grid, .fpfp-service-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Product Page: CTA Block (replaces cart form)
   ======================================== */
.fpfp-product-cta {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eef1f4;
}
.fpfp-cta-primary {
  display: inline-block;
  background: linear-gradient(135deg, #3D9BE9 0%, #2B80A1 100%);
  color: #fff !important;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  padding: 1rem 2.5rem;
  border-radius: 30px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(61, 155, 233, 0.3);
}
.fpfp-cta-primary:hover {
  background: linear-gradient(135deg, #2B80A1 0%, #154051 100%);
  box-shadow: 0 6px 20px rgba(61, 155, 233, 0.4);
  transform: translateY(-1px);
}
.fpfp-cta-phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #6b8a9a;
}
.fpfp-cta-phone svg {
  color: #3D9BE9;
  flex-shrink: 0;
}
.fpfp-cta-phone span {
  color: #6b8a9a;
}
.fpfp-cta-phone a {
  color: #2B80A1 !important;
  font-weight: 600;
  text-decoration: none !important;
}
.fpfp-cta-phone a:hover {
  color: #3D9BE9 !important;
}
.fpfp-cta-trust {
  font-size: 0.82rem;
  color: #6b8a9a;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* ========================================
   Product Page: Inquiry Form Section
   ======================================== */
.fpfp-inquiry-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}
.fpfp-inquiry-card {
  background: #fff;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid #eef1f4;
}
.fpfp-inquiry-title {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #154051;
  margin: 0 0 0.5rem;
  border: none !important;
  padding: 0 !important;
}
.fpfp-inquiry-subtitle {
  font-size: 1rem;
  color: #6b8a9a;
  margin: 0 0 2rem;
  line-height: 1.5;
}
.fpfp-inquiry-form {
  position: relative;
}
.fpfp-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.fpfp-form-field label {
  display: block;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #154051;
  margin-bottom: 0.4rem;
}
.fpfp-form-field label .required {
  color: #e74c3c;
}
.fpfp-form-field label .optional {
  font-weight: 400;
  color: #999;
  font-size: 0.8rem;
}
.fpfp-form-field input[type="text"],
.fpfp-form-field input[type="email"],
.fpfp-form-field input[type="tel"],
.fpfp-form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.95rem;
  color: #333;
  background: #f8fafb;
  border: 1.5px solid #e0e4e8;
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.fpfp-form-field input:focus,
.fpfp-form-field textarea:focus {
  outline: none;
  border-color: #3D9BE9;
  box-shadow: 0 0 0 3px rgba(61, 155, 233, 0.12);
  background: #fff;
}
.fpfp-form-field input::placeholder,
.fpfp-form-field textarea::placeholder {
  color: #aab5be;
}
.fpfp-form-field textarea {
  resize: vertical;
  min-height: 100px;
}
.fpfp-form-full {
  margin-bottom: 1.25rem;
}

/* Consent checkbox */
.fpfp-form-consent {
  margin-bottom: 1.5rem;
}
.fpfp-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  color: #555 !important;
  line-height: 1.5;
}
.fpfp-checkbox-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #3D9BE9;
  cursor: pointer;
}
.fpfp-checkbox-label a {
  color: #3D9BE9 !important;
  font-weight: 600;
}
.fpfp-checkbox-label a:hover {
  color: #2B80A1 !important;
}

/* Submit */
.fpfp-form-submit {
  text-align: center;
  margin-bottom: 1rem;
}
.fpfp-submit-btn {
  display: inline-block;
  background: linear-gradient(135deg, #3D9BE9 0%, #2B80A1 100%);
  color: #fff;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1rem 3rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(61, 155, 233, 0.3);
}
.fpfp-submit-btn:hover {
  background: linear-gradient(135deg, #2B80A1 0%, #154051 100%);
  box-shadow: 0 6px 20px rgba(61, 155, 233, 0.4);
  transform: translateY(-1px);
}
.fpfp-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Status messages */
.fpfp-form-status {
  text-align: center;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.fpfp-form-status--success {
  background: #eafaf1;
  color: #27ae60;
  border: 1px solid #a3d9b1;
}
.fpfp-form-status--error {
  background: #fdf0ed;
  color: #c0392b;
  border: 1px solid #f5c6cb;
}

/* Privacy note */
.fpfp-form-privacy-note {
  text-align: center;
  font-size: 0.78rem;
  color: #999;
  margin: 0;
}

/* Responsive */
@media (max-width: 640px) {
  .fpfp-inquiry-section {
    padding: 0 1.25rem 2rem;
  }
  .fpfp-inquiry-card {
    padding: 1.75rem 1.25rem;
  }
  .fpfp-inquiry-title {
    font-size: 1.35rem;
  }
  .fpfp-form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .fpfp-submit-btn {
    width: 100%;
    padding: 1rem;
  }
}

/* ========================================
   Sticky Mobile CTA
   ======================================== */
.fpfp-sticky-cta {
  display: none;
}
@media (max-width: 768px) {
  .fpfp-sticky-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    padding: 0.75rem 1rem;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  }
  .fpfp-sticky-btn {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #3D9BE9 0%, #2B80A1 100%);
    color: #fff !important;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-decoration: none !important;
    padding: 0.85rem;
    border-radius: 25px;
  }
  /* Extra bottom padding on body to prevent content hiding behind sticky */
  body.single-product {
    padding-bottom: 80px;
  }
}
