/*
Theme Name: Malwina Journal

Version: 1.2
*/

:root {
  --sage:       #7D9B76;
  --sage-light: #EEF2EC;
  --sage-dark:  #526950;
  --cream:      #FDFAF6;
  --nude:       #F5EDE3;
  --charcoal:   #1A1A1A;
  --mid:        #555550;
  --muted:      #999990;
  --gold:       #b8935a;
  --dark:       #1A1A1A;
  --green:      #526950;
  --light:      #FDFAF6;
}

@font-face {
  font-family: 'DM Sans';
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/DMSans-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/PlayfairDisplay-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
  src: url('/fonts/PlayfairDisplay-Italic-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/PlayfairDisplay-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
  src: url('/fonts/PlayfairDisplay-Italic-latin.woff2') format('woff2');
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; }
body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--charcoal); line-height: 1.7; overflow-x: hidden; }

.site-header { position: sticky; top: 0; z-index: 100; background: var(--cream); padding: 0 3rem; border-bottom: 1px solid rgba(0,0,0,0.06); }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo-link { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-logo-img { height: 44px; width: 44px; object-fit: contain; }
.nav-logo-text { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 400; color: var(--charcoal); }
.nav-logo-text em { font-style: italic; color: var(--sage-dark); }
.nav-menu { display: flex; list-style: none; gap: 2.5rem; align-items: center; }
.nav-menu a { font-size: 0.85rem; font-weight: 400; letter-spacing: 0.03em; color: var(--charcoal); text-decoration: none; transition: color 0.2s; }
.nav-menu a:hover, .nav-menu a[aria-current] { color: var(--sage-dark); }
.nav-cta { background: var(--charcoal) !important; color: white !important; padding: 0.6rem 1.5rem !important; font-size: 0.82rem !important; transition: background 0.2s !important; border-radius: 2px; }
.nav-cta:hover { background: var(--sage-dark) !important; color: white !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: #1a1a18; }
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-menu { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--cream); flex-direction: column; padding: 1.5rem 2rem; gap: 1.2rem; }
  .nav-menu.open { display: flex; }
}

.site-main { max-width: 1200px; margin: 0 auto; padding: 0; }
.page-title { font-family: 'Playfair Display', serif; font-size: 2.8rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.page-title::after { content: ''; display: block; width: 40px; height: 2px; background: var(--sage-dark); margin-top: 1rem; margin-bottom: 2.5rem; }
.wp-block-post { border-bottom: 1px solid rgba(0,0,0,0.08); padding-bottom: 3rem; margin-bottom: 3rem; }
.post-date { color: var(--gold); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.entry-title a { font-family: 'Playfair Display', serif; color: var(--dark); text-decoration: none; font-weight: 700; font-size: 1.5rem; display: block; margin: 0.4rem 0 0.6rem; line-height: 1.25; }
.entry-title a:hover { color: var(--green); }
.entry-excerpt { color: #555; }
.entry-content h2, .entry-content h3 { font-weight: 400; margin: 2rem 0 1rem; line-height: 1.3; }
.entry-content p { margin-bottom: 1.2rem; }
.entry-content a { color: var(--green); }



.wp-site-blocks > header, .wp-site-blocks > footer { display: none; }

/* === Journal Hero Section === */
.journal-hero {
  background: var(--nude);
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 5rem 3rem 3rem;
}
.journal-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  max-width: 680px;
  text-align: center;
}
.journal-hero-inner .page-title {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0;
  color: var(--charcoal);
}
.journal-hero-inner .page-title em { color: #526950 !important; font-style: italic; font-weight: 400; }
  font-style: italic;
  color: var(--sage);
  font-weight: 400;
}
.journal-hero-inner .page-title::after {
  margin-left: auto;
  margin-right: auto;
}
.journal-hero-inner p {
  color: var(--mid);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto;
}
.journal-grid-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 3rem 6rem;
}
.journal-grid-wrapper .journal-grid {
  margin-top: 0;
}

/* === Masonry Card Grid === */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 3px;
  margin-top: 3rem;
}

/* 6-Karten-Zyklus, kein 3-Spalten-Block */
/* Abschnitt A: Zeilen 1-2  */
.blog-card:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
.blog-card:nth-child(6n+2) { grid-column: span 1; grid-row: span 1; }
.blog-card:nth-child(6n+3) { grid-column: span 1; grid-row: span 1; }
/* Abschnitt B: Zeilen 3-4 */
.blog-card:nth-child(6n+4) { grid-column: span 1; grid-row: span 2; }
.blog-card:nth-child(6n+5) { grid-column: span 2; grid-row: span 1; }
.blog-card:nth-child(6n+6) { grid-column: span 2; grid-row: span 1; }

/* Titelgroessen */
.blog-card:nth-child(6n+1) .entry-title a { font-size: 1.55rem; }
.blog-card:nth-child(6n+4) .entry-title a { font-size: 1.1rem; }
.blog-card:nth-child(6n+5) .entry-title a,
.blog-card:nth-child(6n+6) .entry-title a { font-size: 1.05rem; }
.blog-card:nth-child(6n+2) .entry-title a,
.blog-card:nth-child(6n+3) .entry-title a { font-size: 0.88rem; }

/* Excerpt nur auf grosse Kachel */
.blog-card .entry-excerpt { display: none; }
.blog-card:nth-child(6n+1) .entry-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  line-height: 1.55;
}

.blog-card {
  position: relative;
  overflow: hidden;
  background: var(--nude);
  display: block;
  text-decoration: none;
  cursor: pointer;
}
.blog-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,26,0.78) 0%, rgba(26,26,26,0.1) 55%, transparent 100%);
  z-index: 1;
  transition: opacity 0.3s;
}
.blog-card:hover::after { opacity: 0.92; }
.blog-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-bg { transform: scale(1.04); }
.blog-card-no-img {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #c8d6c6 0%, #e2d5ca 100%);
}
.blog-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.2rem 1.4rem;
  z-index: 2;
}
.blog-card-fulllink {
  position: absolute;
  inset: 0;
  z-index: 3;
}
.blog-card .post-date {
  color: rgba(255,255,255,0.65);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.blog-card .entry-title a {
  font-family: "Playfair Display", serif;
  color: white;
  text-decoration: none;
  font-weight: 700;
  display: block;
  line-height: 1.25;
  pointer-events: none;
}
.blog-card-no-thumb .post-date { color: rgba(255,255,255,0.75); }
.blog-card-no-thumb .entry-title a { color: white; }
.blog-card-no-thumb::after {
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 70%);
}

/* Platzhalter-Kachel */
.blog-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F5EDE3;
  opacity: 1;
}
.blog-placeholder__logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  opacity: 0.6;
}
.blog-placeholder--1x2 { grid-column: span 1; grid-row: span 2; }
.blog-placeholder--1x1 { grid-column: span 1; grid-row: span 1; }
.blog-placeholder--2x2 { grid-column: span 2; grid-row: span 2; }
.blog-placeholder--2x1 { grid-column: span 2; grid-row: span 1; }

@media (max-width: 900px) {
  .journal-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }
  .blog-card,
  .blog-placeholder { grid-column: span 1 !important; grid-row: span 1 !important; }
}
@media (max-width: 600px) {
  .journal-grid { grid-template-columns: 1fr; }
}

footer {
  background: #1a1a18;
  text-align: center;
  padding: 3rem 2rem;
  font-size: 1rem;
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.footer-logo {
  display: block;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 300;
  color: white;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  margin-top: 1.2rem;
}
.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 300;
  transition: color 0.2s;
}
.footer-links a:hover { color: white; }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-top: 0.75rem; }

.page-title-divider {
  width: 40px;
  height: 2px;
  background: var(--sage-dark);
  margin: 1rem auto 0;
}

.journal-intro-white {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: white;
  padding: 3.5rem 0 0;
}
.journal-intro-white-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}
.journal-hero-inner .page-title::after { display:block; width:40px; margin-left:auto; margin-right:auto; }


/* ================================================
   SINGLE POST LAYOUT
   ================================================ */

/* HEADER */
.post-hero {
  background: var(--nude, #F5EDE3);
  padding: 4rem 2rem 3rem;
  text-align: center;
  margin-left: calc(-50vw + 50%);
  width: 100vw;
  box-sizing: border-box;
}
.post-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}
.post-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-dark, #526950);
  margin-bottom: 1.2rem;
}
.post-sep { margin: 0 0.5rem; opacity: 0.4; }
.post-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--charcoal, #1A1A1A);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}
.post-divider {
  width: 40px;
  height: 2px;
  background: var(--sage, #7D9B76);
  margin: 0 auto;
}

/* FEATURED IMAGE */
.post-featured-img {
  margin-left: calc(-50vw + 50%);
  width: 100vw;
  overflow: hidden;
  box-sizing: border-box;
}
.post-featured-img img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* CONTENT */
.post-body {
  background: #ffffff;
  margin-left: calc(-50vw + 50%);
  width: 100vw;
  box-sizing: border-box;
  padding: 5rem 0 2.5rem;
}
.post-content-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.post-content-wrap-inner {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--charcoal, #1A1A1A);
}
.post-content-wrap p {
  margin-bottom: 1.5rem;
  text-align: justify;
  hyphens: auto;
}
.post-content-wrap h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--sage-dark, #526950);
  margin: 2.5rem 0 1rem;
}
.post-content-wrap h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--charcoal, #1A1A1A);
  margin: 2rem 0 0.75rem;
}
.post-content-wrap blockquote {
  border-left: 3px solid var(--sage, #7D9B76);
  background: var(--nude, #F5EDE3);
  padding: 1.2rem 1.5rem;
  margin: 2rem 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--sage-dark, #526950);
}
.post-content-wrap a {
  color: var(--sage-dark, #526950);
  text-decoration: underline;
}

/* SIGNATUR */
.post-signature {
  margin-top: 3rem;
  padding-top: 2rem;
}
.post-sig-line {
  width: 100%;
  height: 1px;
  background: rgba(0,0,0,0.08);
  margin-bottom: 1.5rem;
}
.post-sig-inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.post-sig-img {
  height: 48px;
  width: auto;
  opacity: 0.85;
}
.post-sig-name {
  display: block;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--charcoal, #1A1A1A);
}
.post-sig-role {
  display: block;
  font-size: 0.75rem;
  color: var(--muted, #999990);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* WEITERE ARTIKEL */
.post-more {
  background: #ffffff;
  margin-left: calc(-50vw + 50%);
  width: 100vw;
  box-sizing: border-box;
  padding: 3.5rem 2rem 4rem;
  margin-top: 0;
}
.post-more-inner {
  max-width: 900px;
  margin: 0 auto;
}
.post-back {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--sage-dark, #526950);
  letter-spacing: 0.04em;
  margin-bottom: 2.5rem;
  transition: opacity 0.2s;
}
.post-back:hover { opacity: 0.7; }
.post-related-head {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-dark, #526950);
  margin-bottom: 1.2rem;
}
.post-related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.post-related-card {
  background: white;
  border-top: 3px solid var(--sage, #7D9B76);
  display: block;
  color: var(--charcoal, #1A1A1A);
  transition: transform 0.2s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.post-related-card:hover { transform: translateY(-2px); }
.post-related-img img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.post-related-body { padding: 1.2rem 1.4rem 1.4rem; }
.post-related-date {
  font-size: 0.7rem;
  color: var(--muted, #999990);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.post-related-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal, #1A1A1A);
  line-height: 1.4;
  margin-bottom: 0.8rem;
}
.post-related-link {
  font-size: 0.78rem;
  color: var(--sage-dark, #526950);
  letter-spacing: 0.04em;
}
@media (max-width: 640px) {
  .post-related-grid { grid-template-columns: 1fr; }
  .post-body { padding: 2.5rem 1.2rem; }
}


/* POST LAYOUT FIXES */
.post-hero { width: 100vw; box-sizing: border-box; }
.post-featured-img { margin-left: calc(-50vw + 50%); width: 100vw; overflow: hidden; box-sizing: border-box; }
.post-featured-img img { width: 100%; height: 500px; object-fit: cover; display: block; }
.post-body { background: #ffffff; margin-left: calc(-50vw + 50%); width: 100vw; box-sizing: border-box; padding: 5rem 0 2.5rem; }
.post-more { width: 100vw; box-sizing: border-box; }
.post-more-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* SINGLE POST: body background white */
.single-post body, body.single { background: #FDFAF6; }

body.single-post { overflow-x: hidden; }


/* ===== LEAD ABSATZ ===== */


/* ===== PULL QUOTE ===== */
.post-pull-quote {
  margin-left: calc(-50vw + 50%);
  width: 100vw;
  box-sizing: border-box;
  background: #2c3b2d;
  padding: 2rem 2rem;
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
}
.post-pull-quote-inner {
  max-width: 860px;
  margin: 0 auto;
}
.post-pull-quote p {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-style: italic;
  color: #FDFAF6;
  line-height: 1.65;
  margin-bottom: 1.2rem;
  max-width: 100%;
}
.post-pull-quote cite {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7D9B76;
}

/* ===== CTA STRIP ===== */
.post-cta-strip {
  margin-left: calc(-50vw + 50%);
  width: 100vw;
  box-sizing: border-box;
  background: #F5EDE3;
  padding: 1.75rem 2rem 3.5rem;
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
}
.post-cta-inner {
  max-width: 600px;
  margin: 0 auto;
}
.post-cta-head {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: #1A1A1A;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.post-cta-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: #555550;
  margin-bottom: 2rem;
}
.post-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.post-cta-btn {
  display: inline-block;
  padding: 0.9rem 1.4rem;
  flex: 1;
  min-width: 180px;
  max-width: 280px;
  text-align: center;
  background: #2c3b2d;
  color: #FDFAF6;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.2s;
}
.post-cta-btn:hover { opacity: 0.82; }
.post-cta-btn--outline {
  background: transparent;
  border: 1px solid #2c3b2d;
  color: #2c3b2d;
}
.post-cta-btn--outline:hover {
  background: #2c3b2d;
  color: #FDFAF6;
}

/* ===== MOBILE PULL QUOTE + CTA ===== */
@media (max-width: 720px) {
  .post-pull-quote,
  .post-cta-strip {
    margin-left: -1.2rem;
    width: calc(100% + 2.4rem);
  }
}

/* ===== LEAD PARAGRAPH ===== */
.post-content-wrap > p:first-child {
  border-left: 3px solid #7D9B76;
  padding-left: 1.4rem;
  font-size: 1.05rem;
  line-height: 1.9;
  color: #555550;
  margin-bottom: 2.5rem;
}

/* ===== DISCLAIMER ===== */
.post-disclaimer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem 3rem;
}
.post-disclaimer p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 300;
  color: #aaaaaa;
  line-height: 1.6;
  border-left: 2px solid #dddddd;
  padding-left: 1rem;
  margin: 0;
}

/* SIGNATUR bündig mit Text */
.post-signature {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 0 2rem;
}

/* Abschluss-Block: weniger Abstand oben nach Pull Quote */
.post-body-closing {
  padding-top: 1.25rem;
}

/* Inline CTA Callout */
.post-callout {
  border-left: 3px solid #7D9B76;
  background: #f4f8f4;
  padding: 1.1rem 1.4rem;
  margin: 2rem 0;
}
.post-callout p {
  margin: 0;
  font-size: 0.92rem;
  color: #526950;
  line-height: 1.7;
}
.post-callout strong {
  color: #2c3b2d;
  font-weight: 500;
}

/* Callout Link */
.post-callout-link,
.post-content-wrap a.post-callout-link {
  color: #2c3b2d;
  text-decoration: none;
  border-bottom: 1px solid #7D9B76;
  transition: opacity 0.2s;
}
.post-callout-link:hover { opacity: 0.7; }
.post-callout-link strong { color: #2c3b2d; }


@media (max-width: 900px) {
  .post-pull-quote,
  .post-cta-strip,
  .post-more,
  .post-hero,
  .post-featured-img,
  .post-body {
    margin-left: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .post-pull-quote { padding: 2rem 1.5rem !important; }
  .post-cta-strip { padding: 2rem 1.5rem !important; }
  .post-body { padding: 3rem 1.2rem 2rem !important; }
  .post-more { padding: 2rem 1.2rem !important; }
}

