/*
Theme Name: FamilyApps
Theme URI: https://familyapps.de
Author: QuelTel GmbH
Description: Block-Theme für familyapps.de – Himmelblau & Haus, Poppins lokal eingebunden, keine externen Aufrufe.
Version: 1.1.2
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: familyapps
*/

/* ---------- Grundlagen ---------- */
:root {
  --fa-blue: #3B7FB8;
  --fa-blue-dark: #2E6A9C;
  --fa-night: #1F4E79;
  --fa-gold: #E0A536;
  --fa-cloud: #EAF2FA;
  --fa-ink: #2B2F31;
  --fa-grey: #5B6163;
  --fa-line: #DCE6EF;
  --fa-bg: #F6F9FC;
  --fa-radius: 20px;
  --fa-wrap: 1160px;
}
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--fa-ink); -webkit-font-smoothing: antialiased; }
.fa-wrap { max-width: var(--fa-wrap); margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.fa-sec { padding: 96px 0; }
.fa-sec--tint { background: var(--fa-bg); }
.fa-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--fa-blue-dark); margin-bottom: 14px; }
.fa-h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; margin: 0 0 22px; color: var(--fa-ink); }
.fa-h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; margin: 0 0 16px; color: var(--fa-ink); }
.fa-lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; color: var(--fa-grey); margin: 0; max-width: 640px; }
.fa-head { margin-bottom: 48px; }
.fa-accent { color: var(--fa-blue); }
.fa-skip { position: absolute; left: -9999px; }
.fa-skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 10px 16px; border-radius: 8px; }

/* ---------- Buttons ---------- */
.fa-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 500; font-size: 16px; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.fa-btn--primary { background: var(--fa-night); color: #fff; }
.fa-btn--primary:hover { background: #163a5b; color: #fff; }
.fa-btn--ghost { border: 1.5px solid var(--fa-line); color: var(--fa-night); background: #fff; }
.fa-btn--ghost:hover { border-color: var(--fa-blue); color: var(--fa-night); }
.fa-btn:focus-visible, .fa-nav a:focus-visible, .fa-link:focus-visible { outline: 3px solid var(--fa-gold); outline-offset: 3px; }

/* ---------- Kopfzeile ---------- */
.fa-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--fa-line); }
.fa-header .fa-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; flex-wrap: wrap; }
.fa-logo { display: inline-flex; line-height: 0; }
.fa-logo img { height: 40px; width: auto; }
.fa-nav { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.fa-nav a { color: var(--fa-ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 0; }
.fa-nav a:hover { color: var(--fa-blue-dark); }
.fa-nav .fa-btn { padding: 0 20px; min-height: 42px; font-size: 15px; color: #fff; }

/* ---------- Hero ---------- */
.fa-hero { padding: 88px 0 96px; background: linear-gradient(180deg, var(--fa-cloud) 0%, #fff 100%); }
.fa-hero .fa-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.fa-hero__text { flex: 999 1 480px; min-width: 0; }
.fa-hero__art { flex: 1 1 340px; display: flex; justify-content: center; }
.fa-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.fa-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 30px 0 0; padding: 0; list-style: none; }
.fa-trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--fa-ink); }
.fa-trust svg { color: var(--fa-blue); flex: none; }
.fa-stage { position: relative; width: 380px; max-width: 100%; aspect-ratio: 1 / 0.9; }
.fa-stage__icon { position: absolute; width: 58%; filter: drop-shadow(0 22px 36px rgba(31,78,121,.22)); }
.fa-stage__icon--pdf { top: 0; left: 0; transform: rotate(-6deg); }
.fa-stage__icon--text { top: 22%; right: 0; transform: rotate(5deg); }
.fa-stage__more { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 14px; font-weight: 500; color: var(--fa-night); }

/* ---------- Karten ---------- */
.fa-grid { display: grid; gap: 22px; }
.fa-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.fa-grid--apps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.fa-card { background: #fff; border: 1px solid var(--fa-line); border-radius: var(--fa-radius); padding: 28px; }
.fa-card h3 { font-size: 19px; font-weight: 700; margin: 18px 0 8px; color: var(--fa-ink); }
.fa-card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--fa-grey); }
.fa-badge { width: 52px; height: 52px; border-radius: 14px; background: var(--fa-cloud); color: var(--fa-night); display: flex; align-items: center; justify-content: center; }

.fa-app { display: flex; gap: 18px; align-items: flex-start; }
.fa-app svg.fa-appicon { width: 64px; height: 64px; flex: none; }
.fa-app h3 { margin: 4px 0 6px; }
.fa-status { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 500; color: var(--fa-night); background: var(--fa-cloud); border-radius: 999px; padding: 4px 12px; }

/* ---------- Familien-Block ---------- */
.fa-family { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; background: var(--fa-night); color: #fff; border-radius: 28px; padding: 56px; }
.fa-family__text { flex: 999 1 420px; min-width: 0; }
.fa-family .fa-h2 { color: #fff; }
.fa-family .fa-lead { color: #D6E4F2; }
.fa-family .fa-eyebrow { color: #9CC8EE; }
.fa-family__list { flex: 1 1 280px; display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.fa-family__list li { display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,.08); border-radius: 14px; padding: 16px 18px; font-size: 16px; line-height: 1.5; }
.fa-family__list svg { color: var(--fa-gold); flex: none; margin-top: 2px; }

/* ---------- SeniorApps-Brücke ---------- */
.fa-bridge { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--fa-line); border-radius: 24px; padding: 36px 40px; }
.fa-bridge__left { display: flex; gap: 22px; align-items: center; flex: 999 1 420px; min-width: 0; }
.fa-bridge__left svg { width: 72px; height: 72px; flex: none; }
.fa-bridge h3 { font-size: 22px; margin: 0 0 6px; }
.fa-bridge p { margin: 0; color: var(--fa-grey); line-height: 1.6; }

/* ---------- Fußzeile ---------- */
.fa-footer { background: var(--fa-night); color: #D6E4F2; padding: 56px 0 40px; font-size: 15px; }
.fa-footer .fa-wrap { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.fa-footer img { height: 36px; width: auto; }
.fa-footer p { margin: 14px 0 0; max-width: 360px; line-height: 1.6; }
.fa-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.fa-footer a { color: #fff; text-decoration: none; }
.fa-footer a:hover { text-decoration: underline; }
.fa-footer__bottom { flex-basis: 100%; border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; font-size: 14px; color: #9CC8EE; }

/* ---------- Normale Seiten (Impressum, Datenschutz) ---------- */
.fa-page { padding: 64px 0 96px; }
.fa-page .wp-block-post-title { font-size: clamp(30px, 4vw, 44px); font-weight: 700; margin: 0 0 32px; }
.fa-page .wp-block-post-content { font-size: 17px; line-height: 1.7; }
.fa-page .wp-block-post-content a { color: var(--fa-blue-dark); }

@media (max-width: 720px) {
  .fa-sec { padding: 64px 0; }
  .fa-hero { padding: 56px 0 64px; }
  .fa-nav { gap: 18px; }
  .fa-nav a:not(.fa-btn) { font-size: 14px; }
  .fa-nav .fa-btn { display: none; }
  .fa-header { position: static; }
  .fa-header .fa-wrap { min-height: 0; padding-top: 14px; padding-bottom: 10px; gap: 8px; }
  .fa-logo img { height: 34px; }
  .fa-stage { width: 280px; }
  .fa-family { padding: 36px 24px; }
  .fa-bridge { padding: 28px 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Produkt-Unterseiten & Store-Knöpfe (1.1.0) ---------- */
.fa-app { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
a.fa-app:hover { border-color: var(--fa-blue); box-shadow: 0 10px 28px rgba(31,78,121,.10); }
.fa-app__more { display: block; margin-top: 12px; font-size: 14px; font-weight: 500; color: var(--fa-night); }
.fa-status--live { background: #E3F1EC; color: #275a4f; }
.fa-stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.fa-store { display: inline-flex; flex-direction: column; justify-content: center; min-height: 54px; min-width: 150px; padding: 6px 20px; box-sizing: border-box; border-radius: 12px; background: var(--fa-ink); color: #fff; text-decoration: none; font-size: 17px; font-weight: 700; line-height: 1.15; }
.fa-store:hover { background: #000; color: #fff; }
.fa-store__small { font-size: 11px; font-weight: 400; opacity: .85; }
.fa-store--soon { background: #fff; color: var(--fa-grey); border: 1.5px dashed var(--fa-line); }
.fa-hero--product { padding: 56px 0 72px; }
.fa-back { display: inline-block; margin-bottom: 26px; color: var(--fa-night); text-decoration: none; font-weight: 500; font-size: 15px; }
.fa-product-title { display: flex; gap: 22px; align-items: center; margin-bottom: 22px; }
.fa-product-title__icon { width: 96px; height: 96px; flex: none; filter: drop-shadow(0 10px 20px rgba(31,78,121,.18)); }
.fa-product-title .fa-h1 { margin: 0 0 8px; }
.fa-product-title .fa-status { margin-top: 0; }
.fa-platforms { margin: 18px 0 0; font-size: 16px; color: var(--fa-grey); }
.fa-platforms strong { color: var(--fa-night); font-weight: 500; }
.fa-grid--tiers { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); align-items: start; }
.fa-tier h3 { margin-top: 0; }
.fa-tier__price { font-size: 22px; font-weight: 700; color: var(--fa-night); margin-bottom: 18px; }
.fa-tier__price small { font-size: 14px; font-weight: 400; color: var(--fa-grey); }
.fa-tier--hl { border: 2px solid var(--fa-blue); }
.fa-tier__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fa-tier__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 1.5; }
.fa-tier__list svg { color: var(--fa-blue); flex: none; margin-top: 3px; }
@media (max-width: 720px) { .fa-product-title__icon { width: 72px; height: 72px; } }
