/*
Theme Name: Little Soul Bites
Theme URI: https://littlesoulbites.com
Author: Freya
Author URI: https://littlesoulbites.com
Description: Warmes, modernes Blog-Theme für little soul bites – glutenfreie Rezepte, Familienalltag und positives Mindset. Enthält Startseite mit Rezept-Spotlight, dynamischem Beitrags-Grid, Customizer-Optionen für Hero, About- und Newsletter-Texte.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: little-soul-bites
*/

/* =========================================================
   1) DESIGN-TOKENS
   ========================================================= */
:root{
  --bg:#FAF6ED;
  --surface:#FFFFFF;
  --surface-2:#F5EFE2;
  --text:#3A2B22;
  --muted:#8A7A6C;
  --border:rgba(58,43,34,0.10);

  --brand-ink:#3A2B22;
  --brand-rose:#D98FA3;
  --brand-rose-soft:#F1D3DC;
  --brand-coral:#E8875C;
  --brand-paper:#F5EFE2;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#1C140F;
    --surface:#251B14;
    --surface-2:#2C2018;
    --text:#F5EDE2;
    --muted:#B9A996;
    --border:rgba(255,255,255,0.12);
  }
}
:root[data-theme="dark"]{
  --bg:#1C140F;
  --surface:#251B14;
  --surface-2:#2C2018;
  --text:#F5EDE2;
  --muted:#B9A996;
  --border:rgba(255,255,255,0.12);
}

/* =========================================================
   2) RESET & BASICS
   ========================================================= */
*,*::before,*::after{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  background:var(--bg);
  color:var(--text);
  font-family:"Public Sans", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
h1,h2,h3,h4,h5,h6{
  font-family:"Bricolage Grotesque", ui-sans-serif, sans-serif;
  font-weight:800; text-wrap:balance; margin:0 0 .5em;
}
p{ margin:0 0 1em; }
a{ color:inherit; text-decoration:none; }
ul,ol{ margin:0; padding:0; }
img{ max-width:100%; height:auto; display:block; }
.accent{ font-family:"Instrument Serif", serif; font-style:italic; font-weight:400; }
.screen-reader-text{
  position:absolute !important; width:1px; height:1px; overflow:hidden;
  clip:rect(1px,1px,1px,1px); white-space:nowrap; border:0; padding:0; margin:-1px;
}
.skip-link{
  position:absolute; left:12px; top:-60px; z-index:999; background:var(--brand-ink); color:var(--brand-paper);
  padding:10px 16px; border-radius:8px; transition:top .15s ease;
}
.skip-link:focus{ top:12px; }
:focus-visible{ outline:2px solid var(--brand-rose); outline-offset:2px; }
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
}

.shell{ max-width:1180px; margin:0 auto; padding-inline:20px; }
.mark{ display:block; }

/* =========================================================
   3) HEADER
   ========================================================= */
header.site{
  position:sticky; top:0; z-index:20;
  background:var(--bg);
  border-bottom:1px solid var(--border);
}
.site-bar{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding-block:14px; }
.brand{ display:flex; align-items:center; gap:10px; }
.brand .mark{ width:34px; height:34px; flex:none; }
.brand .word{ display:flex; align-items:center; gap:0.32em; font-size:19px; font-weight:700; white-space:nowrap; }
.brand .word .soul{ color:var(--brand-rose); font-size:1.05em; }

nav.primary{ display:flex; align-items:center; gap:26px; }
nav.primary ul{ display:flex; align-items:center; gap:26px; list-style:none; }
nav.primary a{ font-size:14px; font-weight:500; color:var(--text); white-space:nowrap; }
nav.primary a:hover,
nav.primary .current-menu-item > a{ color:var(--text); }
.bar-actions{ display:flex; align-items:center; gap:10px; }
.icon-btn{
  width:38px; height:38px; border-radius:999px; border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center; background:var(--surface);
  flex:none; cursor:pointer;
}
#nav-toggle{ display:none; }
.hamburger{ display:none; }
@media (max-width:860px){
  nav.primary{ display:none; }
  .hamburger{ display:flex; }
  #nav-toggle:checked ~ .mobile-nav{ max-height:480px; padding-block:10px; }
}
.mobile-nav{ max-height:0; overflow:hidden; transition:max-height .25s ease; display:flex; flex-direction:column; border-top:1px solid var(--border); }
.mobile-nav ul{ list-style:none; display:flex; flex-direction:column; }
.mobile-nav a{ padding:10px 4px; font-size:15px; color:var(--text); border-bottom:1px solid var(--border); display:block; }

/* =========================================================
   4) HERO
   ========================================================= */
.hero{ position:relative; background:var(--brand-ink); color:var(--brand-paper); isolation:isolate; }
.hero-glow-wrap{ position:absolute; inset:0; overflow:hidden; z-index:-1; }
.hero-glow{
  position:absolute; inset:-30% -10% auto auto; width:60%; aspect-ratio:1;
  background:radial-gradient(closest-side, rgba(217,143,163,.34), rgba(217,143,163,0) 70%);
}
.hero-inner{ padding-block:64px 84px; display:flex; flex-direction:column; align-items:flex-start; gap:18px; max-width:640px; }
.eyebrow{ font-size:12px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--brand-rose-soft); }
.hero h1{ font-size:clamp(30px,5vw,50px); line-height:1.08; color:var(--brand-paper); }
.hero h1 .soul{ color:var(--brand-rose); }
.hero p.lead{ font-size:16px; line-height:1.6; color:rgba(245,239,226,0.78); max-width:52ch; }
.cta{
  display:inline-flex; align-items:center; gap:8px; background:var(--brand-coral); color:var(--brand-ink);
  font-weight:700; font-size:14px; padding:12px 20px; border-radius:999px; margin-top:6px;
}
.cta:hover{ filter:brightness(1.05); }

.pills{ display:flex; gap:10px; flex-wrap:wrap; transform:translateY(50%); position:relative; z-index:2; list-style:none; }
.pill{
  background:var(--surface); border:1px solid var(--border); padding:9px 16px; border-radius:999px;
  font-size:13px; font-weight:600; box-shadow:0 6px 18px rgba(58,43,34,0.12); white-space:nowrap; display:inline-flex; align-items:center;
  color:var(--text);
}
.pill .dot{ color:var(--brand-rose); margin-right:6px; }

main{ padding-top:64px; }
main.no-hero{ padding-top:48px; }
section{ padding-block:56px; }
.section-head{ display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin-bottom:28px; flex-wrap:wrap; }
.section-head h2{ font-size:clamp(22px,3vw,28px); margin:0; }
.section-head .see-all{ font-size:13px; font-weight:600; color:var(--brand-rose); }

/* =========================================================
   5) SPOTLIGHT
   ========================================================= */
.spotlight{
  display:grid; grid-template-columns:1.1fr 1fr; gap:36px; align-items:center;
  background:var(--surface); border:1px solid var(--border); border-radius:24px; padding:28px;
}
@media (max-width:760px){ .spotlight{ grid-template-columns:1fr; } }
.art{
  aspect-ratio:4/3; border-radius:16px; overflow:hidden;
  background:linear-gradient(155deg, var(--brand-rose-soft), var(--brand-rose) 55%, var(--brand-coral));
  display:flex; align-items:center; justify-content:center;
}
.art img{ width:100%; height:100%; object-fit:cover; }
.art svg{ width:46%; height:46%; }
.badge-gf{
  display:inline-flex; align-items:center; gap:6px; font-size:11px; font-weight:700; letter-spacing:.04em;
  background:var(--surface-2); border:1px solid var(--border); padding:5px 10px; border-radius:999px; color:var(--text);
}
.badge-gf .dot{ width:6px; height:6px; border-radius:50%; background:var(--brand-coral); }
.spotlight .meta{ font-size:12px; color:var(--text); font-weight:600; letter-spacing:.02em; text-transform:uppercase; margin-top:14px; }
.spotlight h3{ font-size:clamp(22px,3vw,30px); margin-top:8px; line-height:1.15; }
.spotlight p.excerpt{ margin-top:12px; color:var(--muted); line-height:1.6; font-size:15px; max-width:48ch; }
.read-link{ display:inline-flex; align-items:center; gap:6px; margin-top:18px; font-weight:700; font-size:14px; color:var(--brand-ink); }
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]) .read-link{ color:var(--brand-rose-soft); } }
:root[data-theme="dark"] .read-link{ color:var(--brand-rose-soft); }

/* =========================================================
   6) POST GRID + EMPTY STATE
   ========================================================= */
.grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
@media (max-width:900px){ .grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:600px){ .grid{ grid-template-columns:1fr; } }
.card{ display:flex; flex-direction:column; gap:12px; }
.card .art{ aspect-ratio:16/11; border-radius:14px; }
.card .art svg{ width:34%; height:34%; }
.card .meta{ font-size:11px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--text); }
.card h4{ font-family:"Bricolage Grotesque"; font-weight:700; font-size:17px; line-height:1.3; margin:0; }
.card p{ font-size:13.5px; color:var(--muted); line-height:1.55; margin:0; }
.card .when{ font-size:12px; color:var(--muted); margin-top:2px; }

.empty-state{
  grid-column:1 / -1; text-align:center; padding:48px 24px; border:1px dashed var(--border); border-radius:18px;
  color:var(--muted); background:var(--surface);
}
.empty-state strong{ display:block; color:var(--text); font-family:"Bricolage Grotesque"; font-size:18px; margin-bottom:6px; }

/* =========================================================
   7) ABOUT + NEWSLETTER
   ========================================================= */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:24px; }
@media (max-width:800px){ .split{ grid-template-columns:1fr; } }
.panel{ background:var(--surface); border:1px solid var(--border); border-radius:22px; padding:32px; display:flex; flex-direction:column; gap:16px; }
.avatar{ width:56px; height:56px; border-radius:999px; background:var(--brand-ink); display:flex; align-items:center; justify-content:center; flex:none; overflow:hidden; }
.avatar img{ width:100%; height:100%; object-fit:cover; }
.avatar span{ font-family:"Instrument Serif"; font-style:italic; color:var(--brand-rose-soft); font-size:24px; }
.about-head{ display:flex; align-items:center; gap:14px; }
.about-head h3{ font-size:19px; margin:0; }
.about-head .sub{ font-size:13px; color:var(--muted); }
.panel p.bio{ font-size:14.5px; line-height:1.65; color:var(--muted); margin:0; }
.social-row{ display:flex; gap:10px; margin-top:4px; }

.panel.news{ background:var(--brand-ink); color:var(--brand-paper); border-color:transparent; justify-content:center; }
.panel.news h3{ color:var(--brand-paper); font-size:20px; margin:0; }
.panel.news p{ color:rgba(245,239,226,0.75); font-size:14px; line-height:1.6; margin-top:4px; }
.news-form{ display:flex; gap:10px; margin-top:16px; flex-wrap:wrap; }
.news-form input{
  flex:1; min-width:180px; padding:12px 14px; border-radius:999px; border:1px solid rgba(245,239,226,0.28);
  background:rgba(245,239,226,0.08); color:var(--brand-paper); font-size:14px;
}
.news-form input::placeholder{ color:rgba(245,239,226,0.55); }
.news-form button{
  background:var(--brand-coral); color:var(--brand-ink); font-weight:700; font-size:14px;
  border:none; padding:12px 20px; border-radius:999px; cursor:pointer;
}
.news-form button:hover{ filter:brightness(1.05); }

/* =========================================================
   8) FOOTER
   ========================================================= */
footer.site{ border-top:1px solid var(--border); margin-top:20px; }
.foot-inner{ display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; padding-block:28px; }
.foot-nav ul{ display:flex; gap:18px; flex-wrap:wrap; list-style:none; }
.foot-nav a{ font-size:13px; color:var(--text); }
.foot-copy{ font-size:12px; color:var(--muted); }

/* =========================================================
   9) BLOG LISTING / ARCHIVE / SINGLE / PAGE
   ========================================================= */
.page-header{ padding-block:48px 8px; }
.page-header .eyebrow{ color:var(--brand-rose); }
.page-header h1{ font-size:clamp(26px,4vw,40px); color:var(--text); }
.page-header p{ color:var(--muted); max-width:60ch; }

/* ---------- dedicated "Über mich" page ---------- */
.about-hero{
  display:flex; flex-direction:column; align-items:center; text-align:center;
  gap:16px; padding-block:56px 40px;
}
.about-photo{
  width:180px; height:180px; border-radius:50%; overflow:hidden; flex:none;
  background:var(--surface-2); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
}
.about-photo img{ width:100%; height:100%; object-fit:cover; }
.about-photo .placeholder{ display:flex; flex-direction:column; align-items:center; gap:8px; color:var(--muted); }
.about-photo .placeholder svg{ width:52px; height:52px; opacity:.6; }
.about-photo .placeholder span{ font-size:11px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; }
.about-hero h1{ font-size:clamp(26px,4vw,36px); }
.about-hero .sub{ color:var(--muted); font-size:14px; }
.about-hero .social-row{ margin-top:2px; justify-content:center; }

.post-list{ display:flex; flex-direction:column; gap:22px; }
.post-list .card{
  flex-direction:row; align-items:center; gap:24px; background:var(--surface);
  border:1px solid var(--border); border-radius:20px; padding:18px;
}
.post-list .card .art{ width:180px; aspect-ratio:4/3; flex:none; border-radius:14px; }
@media (max-width:640px){ .post-list .card{ flex-direction:column; align-items:stretch; } .post-list .card .art{ width:100%; } }

.pagination{ display:flex; gap:8px; justify-content:center; margin-top:40px; flex-wrap:wrap; }
.pagination a, .pagination span{
  display:inline-flex; align-items:center; justify-content:center; min-width:38px; height:38px; padding-inline:10px;
  border-radius:999px; border:1px solid var(--border); font-size:13px; font-weight:600; background:var(--surface);
}
.pagination .current{ background:var(--brand-ink); color:var(--brand-paper); border-color:transparent; }

article.entry{ padding-block:48px 80px; }
.entry-header{ margin-bottom:28px; }
.entry-header .meta{ font-size:12px; font-weight:600; letter-spacing:.05em; text-transform:uppercase; color:var(--brand-rose); margin-bottom:10px; }
.entry-header h1{ font-size:clamp(28px,4.5vw,44px); line-height:1.12; }
.entry-thumb{ border-radius:20px; overflow:hidden; margin-block:28px; aspect-ratio:16/9; background:var(--surface-2); }
.entry-thumb img{ width:100%; height:100%; object-fit:cover; }

.entry-content{ max-width:72ch; font-size:16px; line-height:1.75; color:var(--text); }
.entry-content > *{ margin-bottom:1.3em; }
.entry-content h2{ font-size:clamp(20px,3vw,26px); margin-top:1.6em; }
.entry-content h3{ font-size:clamp(18px,2.4vw,21px); margin-top:1.4em; }
.entry-content p{ color:var(--text); }
.entry-content a{ color:var(--brand-rose); text-decoration:underline; text-underline-offset:2px; }
.entry-content ul,.entry-content ol{ padding-left:1.3em; }
.entry-content li{ margin-bottom:.4em; }
.entry-content blockquote{
  margin:1.6em 0; padding:18px 22px; border-left:4px solid var(--brand-rose); background:var(--surface-2);
  border-radius:0 14px 14px 0; font-family:"Instrument Serif", serif; font-style:italic; font-size:19px; color:var(--text);
}
.entry-content img{ border-radius:16px; }
.entry-content figcaption{ font-size:13px; color:var(--muted); text-align:center; margin-top:8px; }
.entry-content .wp-block-image{ margin-bottom:1.3em; }
.entry-content pre{ background:var(--surface-2); padding:16px; border-radius:12px; overflow-x:auto; font-size:14px; }
.entry-content code{ background:var(--surface-2); padding:.15em .4em; border-radius:6px; font-size:.9em; }
.entry-content hr{ border:none; border-top:1px solid var(--border); margin:2em 0; }
.entry-content table{ width:100%; border-collapse:collapse; }
.entry-content th,.entry-content td{ border:1px solid var(--border); padding:8px 12px; text-align:left; }
.entry-footer{ margin-top:40px; padding-top:24px; border-top:1px solid var(--border); display:flex; gap:10px; flex-wrap:wrap; }
.entry-footer a{
  font-size:12px; font-weight:600; background:var(--surface-2); padding:6px 12px; border-radius:999px; color:var(--muted);
}
.alignwide{ max-width:100ch; }
.alignfull{ max-width:100vw; margin-left:calc(50% - 50vw); margin-right:calc(50% - 50vw); }

.error-404{ text-align:center; padding-block:80px; display:flex; flex-direction:column; align-items:center; gap:16px; }
.error-404 .mark{ width:64px; height:64px; opacity:.8; }
.error-404 h1{ font-size:clamp(26px,4vw,36px); }
.error-404 p{ color:var(--muted); max-width:48ch; }

/* comments */
.comments-area{ margin-top:48px; padding-top:32px; border-top:1px solid var(--border); }
.comment-list{ list-style:none; display:flex; flex-direction:column; gap:20px; }
.comment-body{ background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:18px; }
.comment-author{ font-weight:700; font-size:14px; }
.comment-meta{ font-size:12px; color:var(--muted); margin-bottom:8px; }
.comment-respond input[type=text],
.comment-respond input[type=email],
.comment-respond input[type=url],
.comment-respond textarea{
  width:100%; padding:12px 14px; border-radius:12px; border:1px solid var(--border); background:var(--surface);
  color:var(--text); font-family:inherit; font-size:14px; margin-bottom:12px;
}
.comment-respond button, .comment-respond input[type=submit]{
  background:var(--brand-ink); color:var(--brand-paper); font-weight:700; font-size:14px; border:none;
  padding:12px 20px; border-radius:999px; cursor:pointer;
}
