/*
Theme Name: Word-Life-Balance
Theme URI: https://wordlifebalance.com
Author: Justus & Frank
Author URI: https://wordlifebalance.com
Description: Die websitegewordene Homepage der podcastgewordenen Sprachtherapie. Ein editoriales, typografisch starkes Design für den Word-Life-Balance Podcast.
Version: 2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wordlifebalance
Tags: blog, portfolio, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ========================================================
   WORD-LIFE-BALANCE THEME
   Editorial · Typografisch · Podcast
   ======================================================== */

/* --- GOOGLE FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=DM+Mono:wght@300;400&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,600;1,9..144,300;1,9..144,600&display=swap');

/* --- CSS VARIABLES --- */
:root {
  --ink:       #1a1410;
  --paper:     #f5f0e8;
  --cream:     #ede8da;
  --warm:      #c8b89a;
  --accent:    #b85c38;
  --accent2:   #4a7c59;
  --muted:     #7a6e62;
  --border:    #d4c9b4;
  --card:      #fffdf8;

  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'Fraunces', Georgia, serif;
  --ff-mono:    'DM Mono', monospace;

  --max-width: 1100px;
  --gutter: clamp(1.5rem, 4vw, 2.5rem);
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: #a04e2f; }

/* --- LAYOUT CONTAINER --- */
.wlb-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wlb-container--narrow { max-width: 720px; }

/* ======================================================
   HEADER / NAVIGATION
   ====================================================== */
#masthead {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--ink);
  border-bottom: 2px solid var(--accent);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.site-title a {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--paper);
  letter-spacing: .04em;
  text-decoration: none;
}
.site-title a span { color: var(--accent); }

/* Main Navigation */
.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 0;
}
.main-navigation ul li a {
  display: block;
  padding: .4rem 1.1rem;
  font-family: var(--ff-mono);
  font-size: .72rem;
  font-weight: 300;
  color: var(--warm);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border-left: 1px solid rgba(255,255,255,.1);
  transition: color .2s, background .2s;
}
.main-navigation ul li:last-child a { border-right: 1px solid rgba(255,255,255,.1); }
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a,
.main-navigation ul li.current_page_item a {
  color: var(--paper);
  background: rgba(184,92,56,.18);
}

/* Mobile nav toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,.2);
  color: var(--warm);
  font-family: var(--ff-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  padding: .35rem .8rem;
  cursor: pointer;
}

/* ======================================================
   HERO — FRONT PAGE
   ====================================================== */
.wlb-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 5rem var(--gutter) 4rem;
  position: relative;
  overflow: hidden;
}
.wlb-hero::before {
  content: 'W';
  position: absolute;
  right: -2rem;
  top: -3rem;
  font-family: var(--ff-display);
  font-size: 32rem;
  font-weight: 900;
  color: rgba(255,255,255,.03);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.wlb-hero__inner { max-width: var(--max-width); margin: 0 auto; }
.wlb-hero__kicker {
  font-family: var(--ff-mono);
  font-size: .72rem;
  font-weight: 300;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}
.wlb-hero__kicker::before {
  content: '';
  display: inline-block;
  width: 2.5rem;
  height: 1px;
  background: var(--accent);
}
.wlb-hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.02em;
  max-width: 720px;
  margin-bottom: 1.5rem;
}
.wlb-hero h1 em { font-style: italic; color: var(--accent); }
.wlb-hero__sub {
  font-family: var(--ff-body);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--warm);
  max-width: 480px;
  line-height: 1.85;
  margin-bottom: 2.5rem;
}
.wlb-hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ======================================================
   BUTTONS
   ====================================================== */
.btn, .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--ff-mono);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .75rem 1.6rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s, color .2s, border-color .2s;
}
.btn--primary, .wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover { background: #a04e2f; transform: translateY(-1px); color: #fff; }
.btn--secondary {
  background: transparent;
  color: var(--warm);
  border: 1px solid rgba(200,184,154,.3);
}
.btn--secondary:hover { border-color: var(--warm); color: var(--paper); }
.btn--dark {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid rgba(255,255,255,.15);
}
.btn--dark:hover { background: rgba(26,20,16,.8); color: var(--paper); }

/* ======================================================
   SECTION LABEL / DIVIDER
   ====================================================== */
.section-label {
  font-family: var(--ff-mono);
  font-size: .7rem;
  font-weight: 300;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ======================================================
   FEATURED EPISODE — FRONT PAGE
   ====================================================== */
.wlb-section { padding: 4rem var(--gutter); }
.wlb-section--cream { background: var(--cream); }
.wlb-section--dark { background: var(--ink); color: var(--paper); }
.wlb-section__inner { max-width: var(--max-width); margin: 0 auto; }

.featured-episode {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.featured-episode::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--accent);
}
.featured-episode__number {
  font-family: var(--ff-display);
  font-size: 4rem;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  user-select: none;
  min-width: 80px;
  padding-top: .2rem;
}
.featured-episode__content h2 {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: .6rem;
}
.featured-episode__content h2 a { color: var(--ink); }
.featured-episode__content h2 a:hover { color: var(--accent); }
.featured-episode__content p {
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.ep-tag {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: .65rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .2rem .65rem;
  background: rgba(184,92,56,.1);
  color: var(--accent);
  border: 1px solid rgba(184,92,56,.2);
  margin-bottom: .75rem;
}

/* ======================================================
   EPISODE GRID (recent episodes)
   ====================================================== */
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.episode-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: border-color .2s, transform .15s;
  text-decoration: none;
  display: block;
}
.episode-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.episode-card__num {
  font-family: var(--ff-mono);
  font-size: .68rem;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: .1em;
  margin-bottom: .5rem;
}
.episode-card h3 {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: .4rem;
}
.episode-card p { font-size: .85rem; color: var(--muted); line-height: 1.6; }

/* ======================================================
   PLATFORMS BAR
   ====================================================== */
.platforms-bar {
  background: var(--ink);
  padding: 1.75rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.platforms-bar__label {
  font-family: var(--ff-mono);
  font-size: .7rem;
  font-weight: 300;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}
.platform-link {
  font-family: var(--ff-mono);
  font-size: .78rem;
  font-weight: 400;
  color: var(--warm);
  text-decoration: none;
  padding: .35rem .85rem;
  border: 1px solid rgba(200,184,154,.2);
  letter-spacing: .06em;
  transition: color .2s, border-color .2s;
}
.platform-link:hover { color: var(--paper); border-color: rgba(200,184,154,.6); }

/* ======================================================
   EMAIL SIGNUP BAND
   ====================================================== */
.email-band {
  background: var(--accent);
  padding: 2.5rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.email-band__text h3 {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .25rem;
}
.email-band__text p { font-size: .88rem; color: rgba(255,255,255,.75); font-weight: 300; }
.email-band__form { display: flex; gap: .5rem; flex: 1; min-width: 260px; }
.email-band__form input[type="email"] {
  flex: 1;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  padding: .65rem 1rem;
  font-family: var(--ff-mono);
  font-size: .82rem;
  outline: none;
}
.email-band__form input[type="email"]::placeholder { color: rgba(255,255,255,.5); }
.email-band__form input[type="email"]:focus { border-color: #fff; }
.email-band__form input[type="submit"],
.email-band__form button {
  background: #fff;
  color: var(--accent);
  font-family: var(--ff-mono);
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .65rem 1.25rem;
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.email-band__form input[type="submit"]:hover,
.email-band__form button:hover { background: var(--cream); }

/* ======================================================
   ÜBER PAGE
   ====================================================== */
.persons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
.person-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2rem;
}
.person-card__initial {
  width: 60px;
  height: 60px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 1.2rem;
}
.person-card h2 { font-family: var(--ff-display); font-size: 1.6rem; font-weight: 700; margin-bottom: .3rem; }
.person-card__role {
  font-family: var(--ff-mono);
  font-size: .72rem;
  font-weight: 300;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.person-card p { font-size: .92rem; color: var(--muted); line-height: 1.75; }

.manifesto {
  background: var(--ink);
  color: var(--paper);
  padding: 3.5rem var(--gutter);
}
.manifesto__inner { max-width: var(--max-width); margin: 0 auto; }
.manifesto blockquote {
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  color: var(--paper);
  max-width: 700px;
  border-left: 3px solid var(--accent);
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}
.manifesto p { font-size: .92rem; color: var(--muted); max-width: 600px; line-height: 1.75; margin-bottom: 1.5rem; }

/* ======================================================
   EPISODES LIST PAGE (alle-folgen)
   ====================================================== */
.folgen-list { display: flex; flex-direction: column; gap: .75rem; }
.folge-item {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 1.2rem;
  cursor: pointer;
  transition: border-color .2s, transform .1s;
  text-decoration: none;
}
.folge-item:hover { border-color: var(--accent); transform: translateX(4px); }
.folge-item--featured { border-left: 3px solid var(--accent); }
.folge-item__num {
  font-family: var(--ff-mono);
  font-size: .85rem;
  font-weight: 300;
  color: var(--muted);
  text-align: center;
}
.folge-item__title {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.folge-item__meta {
  display: block;
  font-family: var(--ff-body);
  font-size: .82rem;
  font-weight: 300;
  color: var(--muted);
  margin-top: .2rem;
}
.folge-item__arrow {
  font-family: var(--ff-mono);
  font-size: .9rem;
  color: var(--border);
  transition: color .2s;
}
.folge-item:hover .folge-item__arrow { color: var(--accent); }

/* ======================================================
   QUIZ PAGE
   ====================================================== */
.quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.quiz-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  cursor: pointer;
  transition: border-color .2s, transform .15s;
  text-decoration: none;
  display: block;
}
.quiz-card:hover { border-color: var(--accent2); transform: translateY(-2px); }
.quiz-card__num {
  font-family: var(--ff-mono);
  font-size: .65rem;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.quiz-card h3 { font-family: var(--ff-display); font-size: 1rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.quiz-tag {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: .62rem;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .15rem .55rem;
  background: rgba(74,124,89,.12);
  color: var(--accent2);
  border: 1px solid rgba(74,124,89,.2);
  margin-top: .6rem;
}

/* ======================================================
   SINGLE EPISODE / POST
   ====================================================== */
.entry-header {
  background: var(--ink);
  color: var(--paper);
  padding: 4rem var(--gutter) 3rem;
}
.entry-header__inner { max-width: var(--max-width); margin: 0 auto; }
.entry-header .ep-number-large {
  font-family: var(--ff-mono);
  font-size: .75rem;
  font-weight: 300;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.entry-header h1 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.entry-header .entry-excerpt {
  font-family: var(--ff-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--warm);
  max-width: 560px;
  line-height: 1.85;
}
.entry-content-area {
  padding: 3rem var(--gutter);
  background: var(--cream);
}
.entry-content-area__inner {
  max-width: 720px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2.5rem;
}
.entry-content-area h2, .entry-content-area h3 {
  font-family: var(--ff-display);
  font-weight: 700;
  margin: 1.5rem 0 .6rem;
}
.entry-content-area h2 { font-size: 1.5rem; }
.entry-content-area h3 { font-size: 1.2rem; }
.entry-content-area p { margin-bottom: 1rem; color: var(--ink); }
.entry-content-area ul, .entry-content-area ol {
  margin: 1rem 0 1rem 1.5rem;
}
.entry-content-area li { margin-bottom: .4rem; }
.entry-content-area a { color: var(--accent); text-decoration: underline; }
.entry-content-area blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--muted);
}
/* Podcast embed */
.podcast-embed { margin-bottom: 2rem; }
.podcast-embed iframe { border: none; width: 100%; }

/* ======================================================
   FOOTER
   ====================================================== */
#colophon {
  background: var(--ink);
  color: var(--muted);
  padding: 2.5rem var(--gutter);
  border-top: 1px solid rgba(255,255,255,.06);
}
.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
}
.site-info {
  font-family: var(--ff-mono);
  font-size: .7rem;
  font-weight: 300;
  letter-spacing: .06em;
  line-height: 1.8;
}
.site-info a { color: var(--warm); text-decoration: none; }
.site-info a:hover { color: var(--paper); }
.footer-social { display: flex; gap: .5rem; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.1);
  font-family: var(--ff-mono);
  font-size: .65rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: .04em;
  transition: color .2s, border-color .2s;
}
.footer-social a:hover { color: var(--paper); border-color: rgba(255,255,255,.4); }

/* ======================================================
   PAGE HERO (generic)
   ====================================================== */
.page-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 4.5rem var(--gutter) 3rem;
  position: relative;
  overflow: hidden;
}
.page-hero__inner { max-width: var(--max-width); margin: 0 auto; }
.page-hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: .75rem;
}
.page-hero p {
  font-family: var(--ff-body);
  font-weight: 300;
  color: var(--warm);
  max-width: 560px;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ======================================================
   WORDPRESS CORE OVERRIDES
   ====================================================== */
.wp-block-image { margin: 1.5rem 0; }
.wp-block-separator { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.aligncenter { text-align: center; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 768px) {
  .main-navigation { display: none; }
  .main-navigation.toggled { display: block; }
  .main-navigation.toggled ul {
    flex-direction: column;
    background: var(--ink);
    border-top: 1px solid rgba(255,255,255,.1);
    padding: .5rem 0;
  }
  .main-navigation.toggled ul li a { border: none; border-bottom: 1px solid rgba(255,255,255,.05); }
  .menu-toggle { display: block; }

  .featured-episode { grid-template-columns: 1fr; }
  .featured-episode__number { font-size: 2.5rem; min-width: auto; }

  .persons-grid { grid-template-columns: 1fr; }
  .folge-item { grid-template-columns: 40px 1fr auto; }
  .site-footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .wlb-hero h1 { font-size: 2.2rem; }
  .episodes-grid { grid-template-columns: 1fr; }
  .email-band { flex-direction: column; align-items: flex-start; }
}
