/*
Theme Name: War's das schon?
Theme URI: https://warsdasschon.de
Author: Stek Media
Author URI: https://stek-media.de
Description: Onepage-Theme für den Podcast „War's das schon?" – Frauen in der Lebensmitte. Warm, ehrlich, mit Humor. Schriften lokal eingebunden (DSGVO), vollständig responsive, Borlabs-Cookie-ready.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: warsdasschon
*/

/* ==========================================================================
   Schriften – lokal eingebunden (kein Google-Server, DSGVO-konform)
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/fraunces-v38-latin-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/fraunces-v38-latin-500.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/fraunces-v38-latin-600.woff2") format("woff2");
}

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("assets/fonts/work-sans-v24-latin-300.woff2") format("woff2");
}

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/work-sans-v24-latin-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/work-sans-v24-latin-500.woff2") format("woff2");
}

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/work-sans-v24-latin-600.woff2") format("woff2");
}

@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/caveat-v23-latin-500.woff2") format("woff2");
}

@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/caveat-v23-latin-600.woff2") format("woff2");
}

/* ==========================================================================
   Basis
   ========================================================================== */

:root {
  --creme: #f3efe7;
  --warmweiss: #fcfaf6;
  --taupe: #b7a899;
  --anthrazit: #303030;
  --text: #494949;
  --oliv: #747a58;
  --oliv-dunkel: #62694b;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Work Sans", Arial, sans-serif;
  --hand: "Caveat", cursive;

  --content-width: 1120px;
  --radius: 7px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--creme);
  color: var(--anthrazit);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

section[id],
.vc_row[id] {
  scroll-margin-top: 90px;
}

h1,
h2,
h3 {
  color: var(--anthrazit);
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  color: var(--text);
}

svg {
  display: block;
}

.wrap {
  width: min(100% - 56px, var(--content-width));
  margin-inline: auto;
}

.section {
  padding: 96px 0;
}

.section-narrow {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--oliv-dunkel);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.accent {
  font-family: var(--hand);
  font-weight: 600;
}

/* Nur für Screenreader (WordPress-Standardklasse) */

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  word-wrap: normal !important;
}

/* Buttons */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 49px;
  padding: 12px 25px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.2;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease;
}

.btn-primary {
  background: var(--anthrazit);
  color: var(--warmweiss);
}

.btn-primary:hover {
  background: #1f1f1f;
}

.btn-secondary {
  border-color: var(--anthrazit);
  background: transparent;
  color: var(--anthrazit);
}

.btn-secondary:hover {
  background: rgba(48, 48, 48, 0.07);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--oliv);
  outline-offset: 4px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(48, 48, 48, 0.08);
  background: rgba(243, 239, 231, 0.94);
  backdrop-filter: blur(8px);
}

/* Angemeldete Nutzer: Adminleiste nicht überlappen */

body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 56px, var(--content-width));
  min-height: 72px;
  margin-inline: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
}

.logo-mark {
  width: 25px;
  height: 25px;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 31px;
  list-style: none;
}

nav a:not(.btn) {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
}

nav a:not(.btn)::after {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--oliv);
  content: "";
  transition: width 0.2s ease;
}

nav a:not(.btn):hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 23px;
  height: 2px;
  background: var(--anthrazit);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 88px 0 98px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.20fr 0.80fr;
  align-items: center;
  gap: 50px;
}

.hero h1 {
  max-width: 600px;
  margin-bottom: 22px;
  font-size: clamp(3.1rem, 6vw, 5.25rem);
  line-height: 0.98;
}

.hero h1 .accent {
  color: var(--oliv-dunkel);
  font-size: 1.08em;
}

.hero-sub {
  max-width: 520px;
  margin-bottom: 20px;
  color: var(--anthrazit);
  font-family: var(--serif);
  font-size: clamp(1.18rem, 2vw, 1.38rem);
  line-height: 1.45;
}

.hero-text {
  max-width: 535px;
  font-size: 1rem;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-caption {
  margin-top: 18px;
  color: var(--oliv-dunkel);
  font-size: 0.9rem;
  text-align: center;
}

/* ==========================================================================
   Worum es geht
   ========================================================================== */

.intro h2,
.section-head h2,
.hosts-intro h2,
.community h2 {
  font-size: clamp(2rem, 3.3vw, 2.8rem);
}

.intro h2 {
  margin-bottom: 28px;
}

.intro p {
  margin-bottom: 20px;
  font-size: 1.03rem;
}

.pullquote {
  max-width: 700px;
  margin: 52px auto 0;
  padding: 0 18px;
  color: var(--oliv-dunkel);
  font-family: var(--serif);
  font-size: clamp(1.42rem, 2.8vw, 1.95rem);
  font-weight: 500;
  line-height: 1.42;
}

/* ==========================================================================
   Themen
   ========================================================================== */

.themen-bg {
  border-top: 1px solid rgba(48, 48, 48, 0.08);
  border-bottom: 1px solid rgba(48, 48, 48, 0.08);
  background: var(--warmweiss);
}

.section-head {
  margin-bottom: 58px;
  text-align: center;
}

.themen-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 880px;
  margin-inline: auto;
  gap: 0 64px;
}

.thema {
  padding: 27px 0;
  border-bottom: 1px solid rgba(48, 48, 48, 0.13);
}

.thema h3 {
  margin-bottom: 7px;
  font-size: 1.15rem;
  font-weight: 600;
}

.thema p {
  font-size: 0.93rem;
}

/* ==========================================================================
   Über uns
   ========================================================================== */

.hosts-intro {
  max-width: 680px;
  margin: 0 auto 60px;
  text-align: center;
}

.hosts-intro h2 {
  margin-bottom: 18px;
}

.hosts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 880px;
  margin-inline: auto;
  gap: 62px;
}

.host {
  text-align: center;
}

.host-portrait {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 164px;
  height: 164px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: rgba(183, 168, 153, 0.25);
  overflow: hidden;
}

.host:nth-child(2) .host-portrait {
  background: rgba(116, 122, 88, 0.18);
}

/* Echte Portraitfotos (später einfach per Bild ersetzen) */

.host-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.host h3 {
  margin-bottom: 13px;
  font-size: 1.55rem;
}

.host p {
  font-size: 0.95rem;
}

.host p + p {
  margin-top: 12px;
}

.hosts-close {
  margin-top: 54px;
  color: var(--oliv-dunkel);
  font-family: var(--serif);
  font-size: 1.14rem;
  text-align: center;
}

/* ==========================================================================
   Podcaststart / Folge
   ========================================================================== */

.episode {
  background: var(--anthrazit);
  color: var(--warmweiss);
}

.episode h2 {
  margin-bottom: 18px;
  color: var(--warmweiss);
  font-size: clamp(2rem, 3.2vw, 2.7rem);
}

.episode p {
  color: #ded9d0;
}

.episode-label {
  display: block;
  margin-bottom: 16px;
  color: var(--taupe);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.episode-title {
  margin-top: 26px;
  color: var(--warmweiss);
  font-family: var(--serif);
  font-size: 1.18rem;
}

.episode-tag {
  display: block;
  margin-top: 24px;
  color: var(--taupe);
  font-size: 1.8rem;
}

.episode .btn-row {
  justify-content: center;
}

.episode .btn-primary {
  background: var(--warmweiss);
  color: var(--anthrazit);
}

.episode .btn-primary:hover {
  background: var(--creme);
}

.episode .btn-secondary {
  border-color: var(--warmweiss);
  color: var(--warmweiss);
}

.episode .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Community
   ========================================================================== */

.community {
  background: var(--oliv-dunkel);
  color: var(--warmweiss);
  text-align: center;
}

.community h2 {
  margin-bottom: 20px;
  color: var(--warmweiss);
}

.community p {
  max-width: 660px;
  margin: 0 auto 13px;
  color: #f2eee6;
}

.community .btn-row {
  justify-content: center;
}

.community .btn-primary {
  background: var(--warmweiss);
  color: var(--anthrazit);
}

.community .btn-primary:hover {
  background: var(--creme);
}

.community .btn-secondary {
  border-color: var(--warmweiss);
  color: var(--warmweiss);
}

.community .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.contact-line {
  margin-top: 27px !important;
  color: #ece6db !important;
  font-size: 0.9rem;
}

/* ==========================================================================
   Austausch
   ========================================================================== */

.austausch {
  max-width: 670px;
  margin-inline: auto;
  text-align: center;
}

.austausch h2 {
  margin-bottom: 20px;
  font-size: clamp(1.8rem, 2.7vw, 2.3rem);
}

.austausch p {
  margin-bottom: 31px;
}

/* ==========================================================================
   Abschluss
   ========================================================================== */

.closing {
  padding: 98px 0 55px;
  background: var(--taupe);
  text-align: center;
}

.closing h2 {
  margin-bottom: 16px;
  font-size: clamp(2.55rem, 5vw, 3.8rem);
}

.closing h2 .accent {
  color: var(--oliv-dunkel);
}

.closing-sub {
  color: #353129;
  font-family: var(--serif);
  font-size: 1.14rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: 34px 0 42px;
  background: var(--taupe);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  color: #353129;
  font-size: 16px;
}

.footer-links a {
  border-bottom: 1px solid transparent;
}

.footer-links a:hover {
  border-bottom-color: currentColor;
}

/* Borlabs "Cookie-Einstellungen"-Link im Footer wie normale Links stylen */

.footer-links .borlabs-cookie-preference,
.footer-links a[data-borlabs-cookie-actions] {
  border-bottom: 1px solid transparent;
  background: none;
  color: #353129;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

/* ==========================================================================
   Unterseiten (Impressum, Datenschutz, Standardseiten)
   ========================================================================== */

.page-plain {
  padding: 72px 0 96px;
}

.page-plain .entry-header {
  max-width: 760px;
  margin: 0 auto 42px;
}

.page-plain .entry-header h1 {
  font-size: clamp(2.3rem, 4vw, 3.2rem);
}

.page-plain .entry-content {
  max-width: 760px;
  margin-inline: auto;
}

.page-plain .entry-content h2 {
  margin: 44px 0 14px;
  font-size: 1.55rem;
}

.page-plain .entry-content h3 {
  margin: 30px 0 10px;
  font-size: 1.18rem;
  font-weight: 600;
}

.page-plain .entry-content p {
  margin-bottom: 16px;
}

.page-plain .entry-content ul,
.page-plain .entry-content ol {
  margin: 0 0 16px 22px;
  color: var(--text);
}

.page-plain .entry-content li {
  margin-bottom: 6px;
}

.page-plain .entry-content a {
  color: var(--oliv-dunkel);
  border-bottom: 1px solid rgba(98, 105, 75, 0.4);
}

.page-plain .entry-content a:hover {
  border-bottom-color: currentColor;
}

.page-plain .entry-content table {
  width: 100%;
  margin-bottom: 20px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.page-plain .entry-content th,
.page-plain .entry-content td {
  padding: 10px 12px;
  border: 1px solid rgba(48, 48, 48, 0.15);
  text-align: left;
  vertical-align: top;
}

.page-plain .entry-content img {
  max-width: 100%;
  height: auto;
}

/* WordPress-Pflichtklassen */

.alignleft {
  float: left;
  margin: 0 24px 16px 0;
}

.alignright {
  float: right;
  margin: 0 0 16px 24px;
}

.aligncenter {
  display: block;
  margin: 0 auto 16px;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  color: var(--text);
  font-size: 0.85rem;
  text-align: center;
}

.sticky,
.bypostauthor,
.gallery-caption {
  display: inherit;
}

/* ==========================================================================
   WPBakery Page Builder – Kompatibilität
   Die Sektionen kommen als vc_row mit el_class (hero, section, closing …);
   WPBakerys eigene Abstände dürfen das Layout nicht verschieben.
   ========================================================================== */

main .vc_row {
  margin-left: 0;
  margin-right: 0;
}

main .vc_column_container {
  padding-left: 0;
  padding-right: 0;
}

main .vc_column_container > .vc_column-inner {
  padding-left: 0;
  padding-right: 0;
}

main .wpb_content_element,
main .wpb_text_column {
  margin-bottom: 0;
}

.hero-visual img {
  width: 100%;
  max-width: 430px;
  height: auto;
}

/* SVG-Platzhalter-Portraits: klein und zentriert wie im Original;
   echte Fotos (ohne diese Klasse) füllen den Kreis per object-fit. */

.host-portrait img.wds-placeholder {
  width: 105px;
  height: 105px;
  border-radius: 0;
  object-fit: contain;
}

/* ==========================================================================
   Mobil (Tablets & Smartphones)
   ========================================================================== */

@media (max-width: 860px) {
  .wrap,
  .header-inner {
    width: min(100% - 38px, var(--content-width));
  }

  .section {
    padding: 70px 0;
  }

  .hero {
    padding: 56px 0 68px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero h1 {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }

  .hero-visual {
    max-width: 430px;
    margin-inline: auto;
  }

  .themen-grid,
  .hosts-grid {
    grid-template-columns: 1fr;
  }

  .hosts-grid {
    gap: 55px;
  }

  .nav-toggle {
    display: flex;
  }

  nav ul {
    position: fixed;
    top: 72px;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(48, 48, 48, 0.1);
    background: var(--creme);
    transition: max-height 0.25s ease;
  }

  body.admin-bar nav ul {
    top: 118px;
  }

  nav ul.open {
    max-height: 430px;
  }

  nav li {
    width: 100%;
  }

  nav a,
  nav a.btn {
    display: block;
    width: 100%;
    padding: 16px 20px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--anthrazit);
    text-align: left;
  }

  nav a.btn:hover {
    background: rgba(48, 48, 48, 0.06);
  }
}

@media (max-width: 520px) {
  .btn-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero {
    text-align: left;
  }

  .hero-caption {
    max-width: 270px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
