/* FoEPro shared styles — loaded on every front-end page (small; no calculator code).
   Covers content blocks used by tool pages, LB pages, guides and legal pages. */

/* FAQ cards (wp:details) */
.wp-block-details{background:#fff;border:1px solid #e5e7eb;border-radius:12px;margin:0 0 10px;overflow:hidden}
.wp-block-details summary{list-style:none;cursor:pointer;font-weight:600;padding:14px 48px 14px 18px;position:relative;line-height:1.4}
.wp-block-details summary::-webkit-details-marker{display:none}
.wp-block-details summary::after{content:"+";position:absolute;right:18px;top:50%;transform:translateY(-50%);font-size:22px;color:#2563eb}
.wp-block-details[open] summary::after{content:"–"}
.wp-block-details[open] summary{border-bottom:1px solid #f1f5f9}
.wp-block-details>p{margin:0;padding:12px 18px 16px;color:#4b5563}
.wp-block-details + :not(.wp-block-details){margin-top:24px}

/* Data tables (wp:table) */
.entry-content .wp-block-table{margin:0 0 24px;border:1px solid #e5e7eb;border-radius:12px;overflow-x:auto;background:#fff;
  -webkit-overflow-scrolling:touch}
.entry-content .wp-block-table table{border-collapse:collapse;width:100%;font-size:15px;margin:0}
.entry-content .wp-block-table thead{border:0}
.entry-content .wp-block-table thead th{background:#eff6ff;color:#1e3a8a;font-size:13px;font-weight:700;padding:10px 12px;
  text-align:left;vertical-align:bottom;border:0;line-height:1.3}
.entry-content .wp-block-table td{padding:8px 12px;border:0;border-top:1px solid #f1f5f9;font-variant-numeric:tabular-nums;white-space:nowrap}
.entry-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd){background:#f8fafc}
.entry-content .wp-block-table.is-style-stripes{border-bottom:1px solid #e5e7eb}
.entry-content .wp-block-table td a{font-weight:600}

/* Facts box ("auf einen Blick") */
.entry-content ul.foepro-facts{list-style:none;margin:0 0 28px;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.entry-content ul.foepro-facts li{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:10px 14px;margin:0;font-size:14px;color:#4b5563}
.entry-content ul.foepro-facts li strong{display:block;font-size:17px;color:#1e3a8a}

/* Source / footnote line */
.entry-content p.foepro-source{font-size:13px;color:#6b7280;border-top:1px solid #e5e7eb;padding-top:12px;margin-top:28px}
.entry-content p.foepro-crumb{font-size:14px;color:#6b7280;margin-bottom:8px}

/* Phones: compact tables, sticky first column + scroll hint */
@media (max-width:640px){
  .entry-content .wp-block-table table{font-size:13px}
  .entry-content .wp-block-table thead th,.entry-content .wp-block-table td{padding:7px 9px}
  .entry-content .wp-block-table th:first-child,.entry-content .wp-block-table td:first-child{position:sticky;left:0;z-index:1;
    background:#fff;box-shadow:2px 0 4px -2px rgba(15,23,42,.18)}
  .entry-content .wp-block-table thead th:first-child{background:#eff6ff}
  .entry-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) td:first-child{background:#f8fafc}
  .wp-block-details summary{padding:12px 44px 12px 14px;font-size:15px}
  .entry-content ul.foepro-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
}
