/*
Theme Name: FABS Blog
Theme URI: https://freizeitpark-consulting.de
Description: FABS-Skin für den Blog (Child-Theme von Divi). Schlankes, kinetisches Design passend zum FABS-Onepager für Blog-Listing und Einzelbeiträge. Beiträge werden weiterhin im normalen WordPress-Editor gepflegt.
Author: Vörlander & Friends
Template: Divi
Version: 1.0.0
Text Domain: fabs-blog
*/

/* ============================ TOKENS (1:1 vom Onepager) ============================ */
:root{
  --void:#080503;
  --ink:#0f0a06;
  --ink-2:#181007;
  --paper:#f7f2ea;
  --paper-2:#efe7da;
  --text:#f4eee3;
  --muted:rgba(244,238,227,.58);
  --muted-2:rgba(244,238,227,.36);
  --ink-text:#171310;
  --ink-muted:#6a5e50;
  --orange:#fc9a03;
  --orange-hi:#ffc21f;
  --gold:#ffbb02;
  --yellow:#ffdd15;
  --deep:#dd7800;
  --deepred:#89000a;
  --line:rgba(255,255,255,.10);
  --line-ink:rgba(23,19,16,.14);
  --maxw:1280px;
  --pad:clamp(1.1rem,4.5vw,4rem);
  --fs-mega:clamp(2rem,4.4vw,4.1rem);
  --fs-xl:clamp(2.6rem,8vw,7rem);
  --fs-h2:clamp(2.1rem,5.5vw,4.6rem);
  --fs-h3:clamp(1.3rem,2.3vw,1.9rem);
  --fs-lead:clamp(1.08rem,1.7vw,1.4rem);
  --fs-body:clamp(1rem,1.2vw,1.12rem);
  --fs-eye:clamp(.72rem,.92vw,.86rem);
  --ease:cubic-bezier(.16,1,.3,1);
}

/* ============================ RESET / BASE ============================ */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;overflow-x:hidden;scroll-behavior:smooth}
body.fb{margin:0;font-family:"Archivo",system-ui,sans-serif;font-size:var(--fs-body);line-height:1.65;
  color:var(--text);background:var(--ink);-webkit-font-smoothing:antialiased;overflow-x:hidden}
body.fb img{max-width:100%;height:auto;display:block}
body.fb a{color:inherit;text-decoration:none}
.fb-wrap{max-width:var(--maxw);margin-inline:auto;padding-inline:var(--pad);width:100%}
.fb-eye{font-size:var(--fs-eye);font-weight:800;letter-spacing:.28em;text-transform:uppercase;color:var(--orange);
  display:inline-flex;align-items:center;gap:.7rem}
.fb-main{display:block}

/* ============================ NAV ============================ */
.fb-nav{position:sticky;top:0;z-index:60;background:rgba(8,6,5,.92);
  backdrop-filter:blur(14px) saturate(150%);-webkit-backdrop-filter:blur(14px) saturate(150%);
  border-bottom:1px solid var(--line)}
.fb-nav-in{max-width:var(--maxw);margin-inline:auto;padding:.7rem var(--pad);
  display:flex;align-items:center;justify-content:space-between;gap:1rem}
.fb-brand{display:flex;align-items:center}
.fb-brand img{height:64px;width:auto;display:block}
.fb-links{display:flex;align-items:center;gap:clamp(1rem,2.4vw,2rem)}
.fb-links a{font-family:"Archivo",sans-serif;font-size:1rem;font-weight:800;letter-spacing:-.01em;color:var(--muted);
  position:relative;transition:color .25s}
.fb-links a:hover{color:#fff}
.fb-links a.fb-link::after{content:"";position:absolute;left:0;bottom:-6px;height:2px;width:0;background:var(--orange);transition:width .3s var(--ease)}
.fb-links a.fb-link:hover::after{width:100%}
.fb-back{display:inline-flex;align-items:center;gap:.5rem;padding:.55rem 1.1rem;background:var(--orange);
  color:#160a02!important;border-radius:2px;transition:transform .25s,box-shadow .25s}
.fb-back:hover{transform:translateY(-2px);box-shadow:0 10px 24px -10px var(--orange);color:#160a02}
.fb-back svg{width:1em;height:1em}

/* ============================ BLOG HERO (Listing) ============================ */
.fb-hero{position:relative;background:var(--void);padding:clamp(3.4rem,9vh,6.5rem) 0 clamp(2.6rem,6vh,4rem);overflow:hidden;
  border-bottom:1px solid var(--line)}
.fb-hero::before{content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(80% 90% at 88% 12%,rgba(252,154,3,.18) 0%,transparent 58%)}
.fb-hero .fb-wrap{position:relative}
.fb-hero-h{font-family:"Archivo",sans-serif;font-weight:900;letter-spacing:-.02em;line-height:1.04;color:#fff;
  font-size:var(--fs-h2);margin:1.1rem 0 0}
.fb-hero-h em{font-style:normal;color:var(--orange)}
.fb-hero-sub{margin:1.2rem 0 0;max-width:52ch;color:var(--text);font-size:var(--fs-lead);font-weight:500}

/* ============================ LISTING / CARDS ============================ */
.fb-list{background:var(--ink);padding:clamp(2.8rem,7vh,4.8rem) 0 clamp(3.6rem,9vh,6rem)}
.fb-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:1.8rem}
.fb-post{display:flex;flex-direction:column;background:#fff;color:var(--ink-text);border-radius:14px;overflow:hidden;
  box-shadow:0 18px 44px -26px rgba(0,0,0,.6);transition:transform .5s var(--ease),box-shadow .5s var(--ease)}
.fb-post:hover{transform:translateY(-7px);box-shadow:0 32px 62px -26px rgba(0,0,0,.7)}
.fb-post-img{display:block;aspect-ratio:16/10;overflow:hidden;background:var(--paper-2)}
.fb-post-img img{width:100%;height:100%;object-fit:cover;transition:transform .7s var(--ease)}
.fb-post:hover .fb-post-img img{transform:scale(1.06)}
.fb-post-body{padding:1.4rem 1.5rem 1.6rem;display:flex;flex-direction:column;flex:1}
.fb-post-date{font-size:.76rem;font-weight:800;text-transform:uppercase;letter-spacing:.07em;color:var(--deep);margin-bottom:.55rem}
.fb-post h3{font-size:1.18rem;line-height:1.25;margin:0 0 .6rem;font-weight:800}
.fb-post h3 a{color:var(--ink-text);transition:color .25s}
.fb-post h3 a:hover{color:var(--deep)}
.fb-post p{font-size:.95rem;color:var(--ink-muted);line-height:1.55;flex:1;margin:0}
.fb-more{margin-top:1.05rem;font-weight:800;font-size:.78rem;text-transform:uppercase;letter-spacing:.05em;color:var(--deep);
  display:inline-flex;align-items:center;gap:.4rem;align-self:flex-start;transition:gap .3s var(--ease)}
.fb-more:hover{gap:.8rem}
.fb-more svg{width:1.1em;height:1.1em}
.fb-empty{color:var(--muted);font-size:1.05rem}

/* ============================ PAGINATION ============================ */
.fb-pag{margin-top:clamp(2.4rem,5vw,3.4rem);display:flex;justify-content:center}
.fb-pag .nav-links{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
.fb-pag .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:2.7rem;height:2.7rem;
  padding:0 .6rem;border:1px solid var(--line);border-radius:8px;color:var(--text);font-weight:800;font-size:.92rem;
  transition:border-color .25s,color .25s,background .25s}
.fb-pag .page-numbers:hover{border-color:var(--orange);color:var(--orange)}
.fb-pag .page-numbers.current{background:var(--orange);border-color:var(--orange);color:#160a02}
.fb-pag .page-numbers.dots{border-color:transparent}

/* ============================ SINGLE / ARTICLE ============================ */
.fb-art-hero{position:relative;background:var(--void);overflow:hidden;
  padding:clamp(2.6rem,7vh,5rem) 0 clamp(2.2rem,5vh,3.4rem);border-bottom:1px solid var(--line)}
.fb-art-hero.has-img{padding:clamp(5rem,16vh,9rem) 0 clamp(2.4rem,6vh,3.6rem)}
.fb-art-bg{position:absolute;inset:0;z-index:0}
.fb-art-bg img{width:100%;height:100%;object-fit:cover;filter:saturate(1.03) contrast(1.03)}
.fb-art-hero.has-img::after{content:"";position:absolute;inset:0;z-index:1;
  background:linear-gradient(180deg,rgba(7,5,4,.5) 0%,rgba(7,5,4,.2) 28%,rgba(7,5,4,.62) 72%,rgba(7,5,4,.96) 100%),
  linear-gradient(80deg,rgba(7,5,4,.86) 0%,rgba(7,5,4,.4) 52%,transparent 86%)}
.fb-art-hero-in{position:relative;z-index:2}
.fb-crumb{display:inline-flex;align-items:center;gap:.5rem;color:var(--muted);font-weight:700;font-size:.85rem;
  margin-bottom:1.1rem;transition:color .25s}
.fb-crumb:hover{color:var(--orange)}
.fb-art-title{font-family:"Archivo",sans-serif;font-weight:900;letter-spacing:-.02em;line-height:1.07;color:#fff;
  font-size:var(--fs-mega);margin:.7rem 0 0;max-width:24ch;text-shadow:0 2px 22px rgba(0,0,0,.6)}
.fb-art-meta{margin-top:1rem;color:var(--muted);font-size:.9rem;font-weight:600}

.fb-art-body{background:var(--paper);color:var(--ink-text);padding:clamp(2.8rem,7vh,5rem) 0 clamp(3rem,8vh,5.5rem)}
.fb-prose{max-width:46rem}
.fb-prose>*{margin:0 0 1.25em}
.fb-prose p{font-size:1.1rem;line-height:1.78;color:#241d17}
.fb-prose h2{font-family:"Archivo",sans-serif;font-weight:900;letter-spacing:-.015em;line-height:1.12;
  font-size:clamp(1.5rem,2.6vw,2.1rem);color:var(--ink-text);margin:2em 0 .6em}
.fb-prose h3{font-family:"Archivo",sans-serif;font-weight:800;line-height:1.2;
  font-size:clamp(1.25rem,2vw,1.6rem);color:var(--ink-text);margin:1.7em 0 .5em}
.fb-prose h4{font-weight:800;font-size:1.18rem;color:var(--ink-text);margin:1.5em 0 .4em}
.fb-prose a{color:var(--deep);text-decoration:underline;text-underline-offset:.18em;text-decoration-thickness:1.5px}
.fb-prose a:hover{color:var(--orange)}
.fb-prose strong{font-weight:800;color:var(--ink-text)}
.fb-prose ul,.fb-prose ol{padding-left:1.4em}
.fb-prose li{margin:.4em 0;font-size:1.08rem;line-height:1.7;color:#241d17}
.fb-prose img,.fb-prose figure{border-radius:12px;overflow:hidden;box-shadow:0 18px 40px -26px rgba(0,0,0,.45)}
.fb-prose figure{margin:1.8em 0}
.fb-prose figcaption{font-size:.85rem;color:var(--ink-muted);margin-top:.6em;text-align:center;box-shadow:none}
.fb-prose blockquote{margin:1.8em 0;padding:.4em 0 .4em 1.4em;border-left:4px solid var(--orange);
  font-family:"Archivo",sans-serif;font-weight:600;font-size:1.2rem;line-height:1.5;color:var(--ink-text);font-style:normal}
.fb-prose iframe,.fb-prose video{max-width:100%;border-radius:12px}
.fb-prose .wp-caption{max-width:100%!important}

/* Artikel-Nav */
.fb-art-nav{background:var(--ink);padding:clamp(2rem,5vh,3.2rem) 0;border-top:1px solid var(--line)}
.fb-art-nav .fb-wrap{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}
.fb-art-nav a{display:inline-flex;align-items:center;gap:.55rem;font-weight:800;font-size:.92rem;color:var(--text);transition:color .25s,gap .3s}
.fb-art-nav a:hover{color:var(--orange);gap:.85rem}
.fb-art-nav .fb-back-blog{padding:.7rem 1.4rem;background:linear-gradient(105deg,var(--gold),var(--orange) 52%,var(--deep));
  color:#1c0a02;border-radius:3px;box-shadow:0 12px 34px -16px rgba(252,154,3,.7)}
.fb-art-nav .fb-back-blog:hover{color:#1c0a02}

/* ============================ FOOTER ============================ */
.fb-foot{background:#050403;border-top:1px solid var(--line);padding-block:2.6rem}
.fb-foot-in{max-width:var(--maxw);margin-inline:auto;padding-inline:var(--pad);
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1.2rem}
.fb-foot .fb-brand img{height:74px}
.fb-foot-links{display:flex;gap:1.6rem;flex-wrap:wrap}
.fb-foot-links a{color:var(--muted);font-size:.92rem;font-weight:700;transition:color .25s}
.fb-foot-links a:hover{color:var(--orange)}
.fb-cp{width:100%;order:3;border-top:1px solid var(--line);padding-top:1.2rem;font-size:.78rem;color:var(--muted-2)}

/* ============================ RESPONSIVE ============================ */
@media (max-width:680px){
  .fb-brand img{height:52px}
  .fb-links{gap:.9rem}
  .fb-links a{font-size:.92rem}
  .fb-back{padding:.5rem .9rem}
  .fb-back span{display:none}
  .fb-art-title{max-width:none}
  .fb-foot-in{flex-direction:column;align-items:flex-start;text-align:left}
}

/* Reduced motion */
@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
