/*
Theme Name: The Fundamental Questions
Theme URI: 
Author: The Fundamental Questions
Description: A clean, typographic theme for law, philosophy and essay publishing.
Version: 2.5
License: GNU General Public License v2 or later
Text Domain: tfq
*/

/* ── LOKALE SCHRIFTEN (selbst gehostet, DSGVO-konform) ── */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ebgaramond-400.woff2') format('woff2');
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ebgaramond-500.woff2') format('woff2');
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ebgaramond-italic-400.woff2') format('woff2');
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ebgaramond-italic-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/inter-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-500.woff2') format('woff2');
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #1a1814;
  --ink-mid: #4a4640;
  --ink-light: #8a8480;
  --ink-faint: #d8d4ce;
  --cream: #f7f4ef;
  --page: #fdfcfa;
  --gold: #b08d57;
  --gold-light: #e8dcc8;
  --serif: 'EB Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --col: 720px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--page);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── SITE HEADER ── */
.site-header {
  border-bottom: 1px solid var(--ink-faint);
  padding: 0 2rem;
  position: relative;
}

.header-inner {
  max-width: var(--col);
  margin: 0 auto;
  padding: 3rem 0 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.site-header .eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.site-header .site-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.site-header .site-title a {
  color: inherit;
  text-decoration: none;
}

.site-header .site-description {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-mid);
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
}

.rule-gold {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-top: 1.25rem;
}

.site-logo {
  position: absolute;
  top: 2rem;
  left: 2rem;
  margin: 0;
  line-height: 0;
  z-index: 2;
}
.site-logo img,
.site-logo .custom-logo {
  display: block;
  width: 80px;
  height: auto;
}
@media (max-width: 1000px) {
  .site-logo { position: static; margin: 0 0 1.25rem; }
}

/* ── NAVIGATION ── */
.site-nav {
  background: var(--cream);
  border-bottom: 1px solid var(--ink-faint);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: var(--col);
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  align-items: center;
  height: 44px;
}

.site-nav a,
.site-nav .menu-item a {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 0.15s;
  list-style: none;
}

.site-nav a:hover,
.site-nav .current-menu-item a { color: var(--ink); }

.site-nav ul { display: flex; gap: 2rem; list-style: none; }

/* ── LANGUAGE SWITCHER ── */
.site-nav .lang-switch { margin-left: 0.5rem; }
.site-nav .lang-switch ul {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav .lang-switch li { margin: 0; padding: 0; line-height: 0; }
.site-nav .lang-switch a { display: inline-flex; border: 0; }
.site-nav .lang-switch img {
  display: block;
  width: 20px;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(26, 24, 20, 0.12);
  opacity: 0.4;
  transition: opacity 0.2s ease;
}
.site-nav .lang-switch a:hover img { opacity: 0.8; }
.site-nav .lang-switch .current-lang img { opacity: 1; }

/* ── MAIN CONTENT ── */
.site-main {
  max-width: var(--col);
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* ── POSTS INDEX ── */
.intro-lede {
  font-size: 1.2rem;
  line-height: 1.8;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.intro-body {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.8;
  margin-bottom: 3rem;
}

.essays-heading {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.essays-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ink-faint);
}

/* ── POST LIST ── */
.post-list { list-style: none; }

.post-list-item {
  border-bottom: 1px solid var(--ink-faint);
  padding: 1.5rem 0;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  align-items: start;
}

.post-list-item:first-child { border-top: 1px solid var(--ink-faint); }

.post-list-item:hover .post-list-title { color: var(--gold); }

.post-num {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-light);
  padding-top: 0.3rem;
  letter-spacing: 0.05em;
  counter-increment: post-counter;
}

.post-list-title {
  font-size: 1.15rem;
  font-weight: 400;
  transition: color 0.15s;
  line-height: 1.4;
  margin-bottom: 0;
}

.post-list-title a {
  color: var(--ink);
  text-decoration: none;
}

.post-list-title a:hover { color: var(--gold); }

.post-list-meta {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-light);
  margin-top: 0.35rem;
  font-weight: 300;
}

/* ── CATEGORY TAGS ── */
.post-categories a {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-light);
  text-decoration: none;
  font-weight: 300;
}

/* ── SINGLE POST ── */
.entry-header { margin-bottom: 2.5rem; }

.entry-eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.entry-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 2rem;
  max-width: 580px;
  color: var(--ink);
}

.entry-divider {
  width: 36px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 2.5rem;
}

.entry-meta {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-light);
  font-weight: 300;
  margin-bottom: 2rem;
  letter-spacing: 0.04em;
}

/* ── POST CONTENT ── */
.entry-content {
  font-size: 1.05rem;
  line-height: 1.85;
}

.entry-content p { margin-bottom: 1.4rem; }

.entry-content h2 {
  font-size: 1.3rem;
  font-weight: 400;
  margin: 2.5rem 0 1rem;
  color: var(--ink);
}

.entry-content h3 {
  font-size: 1.1rem;
  font-weight: 400;
  margin: 2rem 0 0.75rem;
  font-style: italic;
  color: var(--ink-mid);
}

.entry-content blockquote {
  border-left: 2px solid var(--gold);
  margin: 2rem 0;
  padding: 0.5rem 0 0.5rem 1.5rem;
  font-style: italic;
  color: var(--ink-mid);
  font-size: 1.1rem;
}

.entry-content blockquote p { margin-bottom: 0; }

.entry-content a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}

.entry-content a:hover { color: var(--gold); }

.entry-content ul, .entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.4rem;
}

.entry-content li { margin-bottom: 0.4rem; }

/* ── BACK LINK ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-light);
  text-decoration: none;
  margin-bottom: 3rem;
  transition: color 0.15s;
}

.back-link:hover { color: var(--ink); }

/* ── PAGINATION ── */
.nav-links {
  display: flex;
  justify-content: space-between;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ink-faint);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.nav-links a {
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--gold); }

/* ── PAGES ── */
.page-content { font-size: 1.05rem; line-height: 1.85; }
.page-content p { margin-bottom: 1.4rem; }

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--ink-faint);
  padding: 2.5rem 2rem;
  text-align: center;
  margin-top: 4rem;
  position: relative;
}

.footer-inner {
  max-width: var(--col);
  margin: 0 auto;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 300;
  color: var(--ink-light);
  letter-spacing: 0.05em;
}

.footer-inner strong {
  display: block;
  font-weight: 500;
  color: var(--ink-mid);
  margin-bottom: 0.4rem;
}

.footer-social {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  color: var(--ink-light);
  transition: color 0.2s ease;
}
.footer-social:hover { color: var(--gold); }
.footer-social svg { width: 20px; height: 20px; display: block; }

.footer-links { margin-top: 0.9rem; }
.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.footer-links a {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--ink-light);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--gold); }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .site-main { padding: 2.5rem 1.25rem; }
  .site-header { padding: 0 1.25rem; }
  .site-nav { padding: 0 1.25rem; }
  .site-footer { padding: 2rem 1.25rem; }
  .footer-social { left: 1.25rem; }
  .nav-inner { gap: 1.25rem; overflow-x: auto; }
}

/* ── WORDPRESS DEFAULTS (keep WP happy) ── */
.wp-block-image img { max-width: 100%; height: auto; }
.aligncenter { text-align: center; }
.alignright { float: right; margin-left: 1rem; }
.alignleft { float: left; margin-right: 1rem; }
img.aligncenter { display: block; margin: 0 auto; }

/* ── PODCAST: EPISODENLISTE ── */
.podcast-intro {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.8;
  margin-bottom: 3rem;
}
.podcast-intro p { margin-bottom: 1.2rem; }
.podcast-intro p:last-child { margin-bottom: 0; }

.episode-list { margin-top: 0; }

.episode {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--ink-faint);
}
.episode:first-child { border-top: 1px solid var(--ink-faint); }

.episode-play {
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid var(--ink-faint);
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.episode-play svg {
  width: 0.85rem;
  height: 0.85rem;
  fill: var(--ink-mid);
  transition: fill 0.2s ease;
}
.episode-play .icon-play { margin-left: 2px; }
.episode-play .icon-pause { display: none; }

.episode.has-audio .episode-play:hover { border-color: var(--gold); }
.episode.has-audio .episode-play:hover svg { fill: var(--gold); }

.episode.is-playing .episode-play { border-color: var(--gold); }
.episode.is-playing .episode-play .icon-play { display: none; }
.episode.is-playing .episode-play .icon-pause { display: block; fill: var(--gold); }

.episode.is-empty .episode-play { cursor: default; opacity: 0.55; }

.episode-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.3;
  margin: 0 0 0.35rem;
}
.episode-meta {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 300;
  color: var(--ink-light);
  letter-spacing: 0.01em;
}

.episode-progress {
  height: 2px;
  background: var(--ink-faint);
  margin-top: 0.85rem;
  display: none;
}
.episode.is-playing .episode-progress { display: block; }
.episode-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gold);
  transition: width 0.15s linear;
}

.podcast-subscribe {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-light);
  text-align: center;
  margin-top: 3rem;
}

/* ── KONTAKTFORMULAR ── */
.tfq-contact-intro {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}
.tfq-contact-form { margin-top: 0.5rem; }
.tfq-field { margin-bottom: 1.25rem; }
.tfq-field label {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 0.45rem;
}
.tfq-contact-form input[type="text"],
.tfq-contact-form input[type="email"],
.tfq-contact-form textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink-faint);
  border-radius: 3px;
  padding: 0.7rem 0.8rem;
  transition: border-color 0.2s ease;
}
.tfq-contact-form input:focus,
.tfq-contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.tfq-contact-form textarea { resize: vertical; }

.tfq-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.tfq-consent {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-mid);
  margin-bottom: 1.25rem;
}
.tfq-consent label { display: flex; gap: 0.55rem; align-items: flex-start; cursor: pointer; }
.tfq-consent a { color: var(--gold); }

.tfq-contact-form button {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ink);
  border: none;
  border-radius: 3px;
  padding: 0.75rem 1.6rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.tfq-contact-form button:hover { background: var(--gold); }

.tfq-form-success,
.tfq-form-error {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  padding: 1rem 1.2rem;
  border-radius: 4px;
  margin-bottom: 1.75rem;
}
.tfq-form-success { background: rgba(176, 141, 87, 0.10); color: var(--ink); border: 1px solid var(--gold); }
.tfq-form-error   { background: rgba(150, 60, 60, 0.07); color: #8a3a3a; border: 1px solid rgba(150, 60, 60, 0.30); }

.tfq-form-done { text-align: center; }
.tfq-back-home {
  display: inline-block;
  margin-top: 0.25rem;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ink);
  border-radius: 3px;
  padding: 0.75rem 1.6rem;
  text-decoration: none;
  transition: background 0.2s ease;
}
.tfq-back-home:hover { background: var(--gold); }
