/*
Theme Name: Blocksy — Cremista
Theme URI: https://cremista.de
Template: blocksy
Description: Cremista Child-Theme V4 — Specialty Coffee Editorial.
  Brand-Book-Palette (Espresso #1C1612, Crema #C6A27A, Sand #EDE7DE,
  Stein #BFB8AE, Grau #6D685F, White #F8F5F1). Editorial Composition Pass:
  Hero 40/60, Journal 70/30, Mythos pure Typo, Grundlagen Library-Feel,
  PUF/Routine entkartet. Self-hosted Fonts.
Version: 4.0.0
Requires at least: 6.4
Requires PHP: 8.0
Author: cremista
License: GPL v2 or later
Text Domain: blocksy-cremista
*/

/* ========================================================================
   1. Self-hosted Fonts (DSGVO)
   ======================================================================== */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces-latin-wght-normal.woff2") format("woff2-variations"),
       url("fonts/fraunces-latin-wght-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations"),
       url("fonts/inter-latin-wght-normal.woff2") format("woff2");
}

/* ========================================================================
   2. Tokens
   ======================================================================== */

:root, :root.ct-page, :root[data-link] {
  /* V4 Brand Book palette */
  --c-espresso:    #1C1612;
  --c-crema:       #C6A27A;
  --c-crema-dark:  #A78361;
  --c-sand:        #EDE7DE;
  --c-stein:       #BFB8AE;
  --c-grau:        #6D685F;
  --c-white:       #F8F5F1;

  /* Aliases — alte Namen bleiben kompatibel, zeigen auf Brand-Book-Werte */
  --c-papier:      var(--c-sand);
  --c-porzellan:   var(--c-white);
  --c-asche:       var(--c-grau);
  --c-eukalyptus:  var(--c-grau);
  --c-linie:       var(--c-stein);
  --c-hairline:    rgba(191, 184, 174, 0.55);
  --c-auf-dunkel:  var(--c-sand);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --s-11: 160px;

  --container-max: 1240px;
  --container-pad: clamp(20px, 4vw, 40px);
  --content-width: 760px;
  --hero-image-bleed: 160px; /* V3: deutlich mutigerer Bleed */
  --article-hero-max: 1100px;
  --pullquote-width: 840px;

  --section-py: clamp(80px, 10vw, 144px);
  --section-py-mobile: clamp(56px, 12vw, 72px);

  --t-eyebrow: 0.875rem;
  --t-meta:    0.875rem;
  --t-body:    1.1875rem;       /* 19px — V2.1 lesbarer */
  --t-lead:    clamp(1.5rem, 2.2vw, 1.75rem);    /* V4: 24–28px */
  --t-cta:     1rem;
  --t-h3:      1.625rem;
  --t-h2:      clamp(2rem, 4vw, 2.875rem);     /* 32-46 */
  --t-h2-section: clamp(2.5rem, 4.8vw, 3.5rem); /* V4.2: 40-56 (+10%) */
  --t-h1:      clamp(4.25rem, 7.5vw, 5.625rem);  /* V5: 68-90 (+8%) */
  --t-quote:   clamp(1.875rem, 3.4vw, 2.875rem);
  --t-nav:     0.9375rem;

  --theme-palette-color-1: #C6A27A !important;
  --theme-palette-color-2: #A78361 !important;
  --theme-palette-color-3: #1C1612 !important;
  --theme-palette-color-4: #6D685F !important;
  --theme-palette-color-5: #EDE7DE !important;
  --theme-palette-color-6: #F8F5F1 !important;
  --theme-palette-color-7: #BFB8AE !important;
  --theme-palette-color-8: #6D685F !important;
}

/* ========================================================================
   3. Body / Base
   ======================================================================== */

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body, .ct-page-wrapper {
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.7;
  color: var(--c-espresso) !important;
  background: var(--c-papier) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p, li { font-family: var(--font-body); }

/* ========================================================================
   4. Typografie — Hierarchie & Scale
   ======================================================================== */

h1, h2, h3, h4, h5, h6,
.entry-title, .ct-entry-title, .wp-block-heading {
  font-family: var(--font-display) !important;
  font-weight: 500;
  color: var(--c-espresso);
  letter-spacing: -0.005em;
  line-height: 1.15;
}

h1, .entry-title {
  font-size: var(--t-h1);
  letter-spacing: -0.022em;
  line-height: 1.02;
  text-wrap: balance;
  max-width: 14em;
}

h2 { font-size: var(--t-h2); line-height: 1.18; text-wrap: balance; }
h3 { font-size: var(--t-h3); line-height: 1.25; }

h4 {
  font-family: var(--font-body) !important;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.4;
  letter-spacing: 0;
}

.lead {
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--c-espresso);
}

.entry-meta, .post-meta, .ct-meta-element {
  font-size: var(--t-meta);
  font-family: var(--font-body);
  color: var(--c-asche);
  letter-spacing: 0.04em;
}

.entry-meta a, .post-meta a, .ct-meta-element a { color: var(--c-asche); }

figcaption {
  font-size: 0.8125rem;
  color: var(--c-asche);
  margin-top: var(--s-2);
}

/* ========================================================================
   5. Eyebrow — wiederkehrender Editorial-Marker
   ======================================================================== */

.eyebrow {
  font-family: var(--font-body) !important;
  font-size: var(--t-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-eukalyptus);
  margin: 0 0 var(--s-4);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--c-hairline);
  flex: 0 0 24px;
}

.eyebrow + .section-heading,
.eyebrow + h2.wp-block-heading,
.eyebrow + .home-hero-title {
  margin-top: var(--s-3);
}

/* ========================================================================
   6. Links / CTAs
   ======================================================================== */

a:not(.wp-block-button__link):not(.ct-button):not(.ct-header-mobile-trigger):not([class*="ct-image"]):not(figure a) {
  color: var(--c-espresso);
  text-decoration: underline;
  text-decoration-color: var(--c-crema);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

a:not(.wp-block-button__link):not(.ct-button):hover {
  color: var(--c-crema-dark);
  text-decoration-color: var(--c-crema-dark);
}

a:focus-visible {
  outline: 2px solid var(--c-crema);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Editorial CTA */
.home-hero-cta a,
.mythos-attribution a,
.featured-story-cta a {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--t-cta);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--c-espresso);
}

.home-hero-cta a:hover,
.mythos-attribution a:hover,
.featured-story-cta a:hover {
  color: var(--c-crema-dark);
  border-color: var(--c-crema-dark);
}

.home-hero-cta a span,
.mythos-attribution a span,
.featured-story-cta a span { margin-left: var(--s-2); }

.wp-block-button__link, .ct-button, button[type="submit"] {
  background: var(--c-espresso);
  color: var(--c-papier);
  font-family: var(--font-body);
  font-weight: 500;
  padding: var(--s-3) var(--s-5);
  border: none;
  border-radius: 2px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 180ms ease;
}

.wp-block-button__link:hover, .ct-button:hover, button[type="submit"]:hover {
  background: var(--c-crema-dark);
}

/* ========================================================================
   7. Container + Section-System
   ======================================================================== */

.wp-block-group.is-layout-constrained,
.ct-container {
  max-width: var(--container-max);
  padding-inline: var(--container-pad);
  margin-inline: auto;
}

.section-papier    { background: var(--c-papier); }
.section-porzellan { background: var(--c-porzellan); }
.section-espresso  { background: var(--c-espresso); color: var(--c-auf-dunkel); }

section.section-papier,
section.section-porzellan,
section.section-espresso {
  padding-block: var(--section-py);
}

/* Trenner zwischen Sektionen */
section[class*="section-"] + section[class*="section-"]::before {
  content: "";
  display: block;
  width: 64px;
  height: 1px;
  background: var(--c-hairline);
  margin: 0 auto var(--s-9);
}

/* ========================================================================
   8. Image System
   ======================================================================== */

.wp-block-image figure, figure.wp-block-image { margin: 0; }
.wp-block-image img { display: block; height: auto; border-radius: 2px; }

.image-placeholder {
  background: var(--c-porzellan);
  border: 1px solid var(--c-hairline);
  border-radius: 2px;
  position: relative;
  width: 100%;
}
.image-placeholder--portrait { aspect-ratio: 4 / 5; }
.image-placeholder--wide     { aspect-ratio: 3 / 2; }
.image-placeholder--square   { aspect-ratio: 1 / 1; }

/* Wenn ein echtes Bild im Placeholder steckt: vollflächig + cover */
.image-placeholder { position: relative; overflow: hidden; }
.image-placeholder .wp-block-image,
.image-placeholder figure {
  position: absolute; inset: 0; margin: 0;
  width: 100%; height: 100%;
}
.image-placeholder img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  /* Konsistentes Editorial-Grading über alle Pexels-Platzhalter:
     leicht entsättigt, etwas wärmer, weniger Kontrast — wirkt wie
     gemeinsamer Style statt zufälliger Stock-Mix. */
  filter: saturate(0.92) contrast(0.96) brightness(1.01) sepia(0.04);
}

/* Article Hero Breakout — über die Body-Spalte hinaus */
.single .wp-block-image.hero-image,
.single .hero-image {
  max-width: var(--article-hero-max);
  margin-inline: auto;
  margin-block: var(--s-9) var(--s-9);  /* mehr Bühne: 96px oben+unten */
}
.single .wp-block-image.hero-image img,
.single .hero-image img { width: 100%; height: auto; }

/* ========================================================================
   9. HEADER V4.1 — Editorial Masthead, Sand + Stein, leiser
   ======================================================================== */

.ct-header, header[data-id="header"] {
  background: var(--c-sand) !important;
  padding-block: clamp(24px, 3vw, 36px);     /* Gesamthöhe Ziel 96–112px */
  border-top: 1px solid rgba(191, 184, 174, 0.5);   /* Stein, sehr leise */
  border-bottom: 1px solid rgba(28, 22, 18, 0.20);  /* V5.1: Espresso 20%, sichtbarer */
}

/* Blocksy malt den Header-Inhalt über [data-row="middle"] aus mit
   --theme-palette-color-8 (= Grau). Das wirkt dunkel-taupe. Explizit
   auf Sand zwingen, sonst kippt der Hub in falschen Ton. */
.ct-header [data-row*="middle"],
header[data-id="header"] [data-row*="middle"] {
  background-color: var(--c-sand) !important;
  background-image: none !important;
}

/* V5: Header-Layout — Logo + Nav linksbündig nahe beieinander, Search auf
   die rechte Kante. Blocksy hatte space-between (logo links, nav rechts) =
   riesige tote Mitte. Jetzt: editorial-Masthead-Cluster. */
.ct-header [data-row*="middle"] > .ct-container,
.ct-header [data-row*="middle"] .ct-container {
  display: flex !important;
  align-items: center !important;
  gap: clamp(40px, 6vw, 80px) !important;
  justify-content: flex-start !important;
}
.ct-header [data-column="start"] { flex: 0 0 auto !important; }
.ct-header [data-column="end"]   { flex: 1 1 auto !important; }
.ct-header [data-column="end"] [data-items="primary"] {
  display: flex !important;
  align-items: center !important;
  gap: clamp(20px, 3vw, 40px) !important;
}
.ct-header [data-column="end"] .ct-header-search,
.ct-header [data-column="end"] [data-id="search"] {
  margin-left: auto !important;            /* an die rechte Kante */
}

/* V5.1 Surgical Pass — optische Balance */

/* (1) Nav 5px tiefer — Baseline-Align zum gewachsenen Logo */
.ct-header [data-column="end"] nav,
.ct-header [data-column="end"] [data-id="menu"] {
  transform: translateY(5px);
}

/* (5) Nav max-width — bleibt dicht am Logo, breitet sich nicht aus */
.ct-header [data-column="end"] nav .menu,
.ct-header [data-column="end"] ul.menu {
  max-width: 480px;
  flex-wrap: nowrap;
}


/* Logo-System: Wordmark + Subtitle — V5: +25%, Editorial-Dominanz
   V5.1: optical weight +5% (550 statt 500), spacing leicht enger */
.site-title, .ct-site-title, [data-id="logo"] a {
  font-family: var(--font-display) !important;
  font-weight: 550;
  font-size: clamp(2.5rem, 4.4vw, 3.5rem);    /* V5: 40-56px (+25%) */
  letter-spacing: -0.024em;                   /* V5.1: enger fuer mehr Dichte */
  line-height: 1;
  color: var(--c-espresso) !important;
  text-decoration: none;
  display: inline-block;
  position: relative;
}

/* Subtitle unter dem Wordmark — Editorial Masthead */
.site-title::after,
.ct-site-title a::after,
[data-id="logo"] a::after {
  content: "espresso zuhause verstehen";
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--c-asche);
  opacity: 0.65;
  margin-top: 6px;
}

/* Navigation — Editorial-leise, mit Luft */
.ct-header .menu-item,
[data-id="menu"] ul li {
  margin-inline: 22px;                       /* V3: ~44px Gap zwischen Items */
}
.ct-header .menu-item:first-child,
[data-id="menu"] ul li:first-child { margin-left: 0; }
.ct-header .menu-item:last-child,
[data-id="menu"] ul li:last-child { margin-right: 0; }

.ct-header .menu-item > a,
.ct-header ul.menu a,
[data-id="menu"] ul li a {
  font-family: var(--font-body) !important;
  font-size: var(--t-nav) !important;        /* 15px */
  font-weight: 400 !important;               /* V4: leichter */
  text-transform: uppercase;
  letter-spacing: 0.11em;                    /* V5.1: -8% von 0.12 */
  color: var(--c-grau) !important;           /* V4: Grau statt Espresso */
  text-decoration: none !important;
  padding: var(--s-2) 0 !important;
  transition: color 180ms ease;
}

.ct-header .menu-item > a:hover,
.ct-header ul.menu a:hover { color: var(--c-espresso) !important; }

.ct-header .current-menu-item > a,
.ct-header [class*="current-"] > a {
  color: var(--c-espresso) !important;
  position: relative;
  font-weight: 500 !important;
}

.ct-header .current-menu-item > a::after,
.ct-header [class*="current-"] > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--c-crema);
}

/* Search icon kleiner / leiser — V4: noch leiser */
.ct-header [class*="search"] svg,
.ct-toggle-search svg,
.ct-header .ct-icon-container svg {
  width: 15px !important;
  height: 15px !important;
  opacity: 0.35;
  color: var(--c-grau) !important;
  transition: opacity 180ms ease;
}

.ct-header [class*="search"]:hover svg,
.ct-toggle-search:hover svg { opacity: 0.75; }

/* V5.2: Homepage-Pagetitle entfernen — Lösung liegt NICHT in CSS, sondern
   in Blocksy-Meta `has_hero_section=disabled` auf Page 12 (per wp-cli gesetzt).
   Damit wird der H1 serverseitig gar nicht erst gerendert; keine zweite H1
   im DOM, sauber für Google. Hero rutscht natürlich nach oben. */

/* ========================================================================
   10. HOMEPAGE V2.1
   ======================================================================== */

/* --- HERO V3 — 38/62 Split, Big-Bleed, Editorial Cover --- */

.home-hero {
  padding-block: clamp(96px, 12vw, 160px) clamp(80px, 10vw, 128px); /* V3: 160/128 */
  overflow: visible;
}

.home-hero .home-hero-grid {
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}

.home-hero-text {
  padding-block: var(--s-4);
}

.home-hero-text .eyebrow {
  margin-bottom: var(--s-5); /* 24px → H1 */
}

.home-hero-title {
  font-size: clamp(3.5rem, 7vw, 5.25rem); /* V3: 56-84 */
  line-height: 1;
  letter-spacing: -0.028em;
  margin: 0 0 var(--s-7); /* 48px → Lead */
  max-width: 580px;
  text-wrap: balance;
}

.home-hero-lead {
  font-size: clamp(1.375rem, 1.9vw, 1.5rem); /* V3: 22-24 */
  line-height: 1.55;
  color: var(--c-espresso);
  margin: 0 0 var(--s-7); /* 48px → Statement */
  max-width: 560px;
}

.home-hero-statement {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--c-asche);
  margin: 0 0 var(--s-7); /* 48px → CTA */
  max-width: 520px;
}

/* V3: Bild bricht 160px nach rechts aus dem Container */
@media (min-width: 1024px) {
  .home-hero-image { margin-right: calc(var(--hero-image-bleed) * -1); }
}

.home-hero-image .image-placeholder { width: 100%; }

/* --- FEATURED PROBLEMS — Feature Story + 2 Secondary --- */

.home-featured .eyebrow { margin-bottom: var(--s-4); }

.home-featured .section-heading {
  margin-bottom: var(--s-9);
}

/* Feature Story (1 prominent) */
.featured-story {
  margin-bottom: var(--s-10);
}

.featured-story-grid {
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}

.featured-story-image .image-placeholder {
  width: 100%;
  aspect-ratio: 3 / 2;
}

.featured-story-text .eyebrow {
  margin-bottom: var(--s-4);
}

.featured-story-title {
  font-size: clamp(2.25rem, 4vw, 3.25rem); /* V3: 36-52 — Story-Anker */
  line-height: 1.08;
  letter-spacing: -0.018em;
  margin: 0 0 var(--s-5);
}

.featured-story-title a {
  text-decoration: none;
  border-bottom: none !important;
  color: var(--c-espresso);
  background-image: linear-gradient(var(--c-crema), var(--c-crema));
  background-size: 0 1px;
  background-position: 0 calc(100% - 2px);
  background-repeat: no-repeat;
  transition: background-size 260ms ease, color 180ms ease;
}

.featured-story-title a:hover {
  color: var(--c-crema-dark);
  background-size: 100% 1px;
}

.featured-story-dek {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--c-asche);
  margin: 0 0 var(--s-5);
  max-width: 32em;
}

/* Featured Secondary — 2 entkartete kleinere Cards */
.featured-secondary-grid {
  gap: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--c-hairline);
  padding-top: var(--s-7);
}

.editorial-card,
.editorial-card--small {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.editorial-card .image-placeholder,
.editorial-card--small .image-placeholder {
  margin: 0 0 var(--s-5);
}

.editorial-card .eyebrow,
.editorial-card--small .eyebrow { margin: 0 0 var(--s-2); }

.editorial-card .card-title,
.editorial-card--small .card-title {
  font-size: clamp(1.375rem, 2vw, 1.625rem);
  line-height: 1.2;
  margin: 0 0 var(--s-3);
}

.editorial-card .card-title a,
.editorial-card--small .card-title a {
  text-decoration: none;
  border-bottom: none !important;
  color: var(--c-espresso);
  background-image: linear-gradient(var(--c-hairline), var(--c-hairline));
  background-size: 0 1px;
  background-position: 0 calc(100% - 2px);
  background-repeat: no-repeat;
  transition: background-size 240ms ease, color 180ms ease;
}

.editorial-card .card-title a:hover,
.editorial-card--small .card-title a:hover {
  color: var(--c-crema-dark);
  background-size: 100% 1px;
}

.editorial-card .card-dek,
.editorial-card--small .card-dek {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-asche);
  margin: 0;
}

/* --- GRUNDLAGEN 2×2 --- */

.home-grundlagen .eyebrow { margin-bottom: var(--s-4); }
.home-grundlagen .section-heading { margin-bottom: var(--s-9); }

.home-grundlagen .cornerstones-grid {
  gap: clamp(40px, 5vw, 72px);
}

.home-grundlagen .cornerstones-grid + .cornerstones-grid {
  margin-top: clamp(40px, 5vw, 72px);
}

.cornerstone-card {
  position: relative;
  padding-top: var(--s-6) !important;
  border-top: 1px solid var(--c-hairline);
  background: transparent !important;
  box-shadow: none !important;
}

/* V4: Kapitelnummern gross, Library-Feel */
.cornerstone-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.75rem);    /* V4: 32–44px Fraunces */
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--c-crema);                     /* Akzent */
  margin: 0 0 var(--s-5);
}

.cornerstone-title {
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  line-height: 1.2;
  margin: 0 0 var(--s-4);
}

.cornerstone-title a {
  text-decoration: none;
  border-bottom: none !important;
  color: var(--c-espresso);
}

.cornerstone-title a:hover { color: var(--c-grau); }

/* V4: weniger Erklärtext, kürzer */
.cornerstone-dek {
  font-size: 0.9375rem;       /* 15px */
  line-height: 1.55;
  color: var(--c-grau);
  margin: 0;
  max-width: 26em;
}

/* --- MYTHOS — Quote-led --- */

/* V4: extrem reduziert — pure Typografie, viel Negativraum, keine Linie */
.home-mythos { padding-block: clamp(128px, 18vw, 224px); }

.home-mythos .eyebrow { margin-bottom: var(--s-9); }

.mythos-quote, blockquote.mythos-quote {
  border: none !important;
  padding: 0 !important;
  margin: 0 0 var(--s-8) !important;
  max-width: 960px;
  position: relative;
}

/* V4: Crema-Linie ist raus */

.mythos-quote p {
  font-family: var(--font-display) !important;
  font-weight: 400;                          /* V4: leichter, ruhiger */
  font-style: italic;                        /* V4: editorial-Pull */
  font-size: var(--t-quote);
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--c-espresso);
  margin: 0;
  padding-left: 0;                           /* V4: keine Einrückung mehr */
  text-wrap: balance;
}

.mythos-attribution {
  margin: 0;
  padding-left: 0;
  color: var(--c-grau);
}

/* --- JOURNAL V4 — Asymmetrie 70/30, weniger Grid-Feeling --- */

.home-journal .eyebrow { margin-bottom: var(--s-4); }
.home-journal .section-heading { margin-bottom: var(--s-9); }

.home-journal .journal-grid {
  gap: clamp(56px, 7vw, 96px);              /* V4: mehr Spalt, weniger Grid */
  align-items: start;
}

/* V4: Sekundäre Spalte oben rangerückt, wirkt wie Sidebar nicht wie 2. Element */
.journal-secondary { padding-top: var(--s-3); }

.journal-primary .image-placeholder {
  aspect-ratio: 3 / 2;
  margin: 0 0 var(--s-6);
}

.journal-secondary .image-placeholder {
  aspect-ratio: 4 / 5;
  margin: 0 0 var(--s-5);
}

.journal-primary .eyebrow { margin-bottom: var(--s-3); }

.journal-primary .journal-title {
  font-size: clamp(2rem, 3.6vw, 2.625rem);
  line-height: 1.15;
  margin: 0 0 var(--s-4);
}

.journal-secondary .journal-title,
.journal-secondary .journal-title--small {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.25;
  margin: 0 0 var(--s-3);
}

.journal-title a {
  text-decoration: none;
  border-bottom: none !important;
  color: var(--c-espresso);
}

.journal-title a:hover { color: var(--c-grau); }

.journal-dek {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-asche);
  margin: 0;
}

.journal-primary .journal-dek {
  font-size: 1.0625rem;
  max-width: 28em;
}

/* --- NEWSLETTER — Editorial Invitation, weniger Formular --- */

.home-newsletter {
  text-align: center;
  padding-block: clamp(80px, 11vw, 144px);
}

.home-newsletter > * {
  max-width: 680px;
  margin-inline: auto;
}

.home-newsletter .eyebrow {
  justify-content: center;
  margin-bottom: var(--s-6);
}

.newsletter-headline {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.2;
  text-wrap: balance;
  margin: 0 0 var(--s-5);
}

.newsletter-intro {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--c-asche);
  margin: 0 0 var(--s-8);
}

.newsletter-form {
  display: flex;
  gap: var(--s-4);
  max-width: 520px;
  margin: 0 auto var(--s-4);
  flex-wrap: wrap;
  border-bottom: 1px solid var(--c-hairline);
  padding-bottom: var(--s-2);
}

.newsletter-form input[type="email"] {
  flex: 1 1 240px;
  padding: var(--s-3) 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  border: none;
  background: transparent;
  color: var(--c-espresso);
}

.newsletter-form input[type="email"]::placeholder {
  color: var(--c-asche);
}

.newsletter-form input[type="email"]:focus-visible {
  outline: none;
}

.newsletter-form button[type="submit"] {
  background: transparent;
  color: var(--c-espresso);
  font-family: var(--font-body);
  font-size: var(--t-cta);
  font-weight: 500;
  padding: var(--s-3) 0;
  border: none;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: color 180ms ease;
}

.newsletter-form button[type="submit"]:hover {
  background: transparent;
  color: var(--c-crema-dark);
}

.newsletter-form button[type="submit"] span { margin-left: var(--s-2); }

.newsletter-foot {
  font-size: 0.875rem;
  color: var(--c-asche);
  margin: 0;
}

/* ========================================================================
   11. SECTION-HEADINGS (Homepage)
   ======================================================================== */

.section-heading {
  font-size: var(--t-h2-section);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 var(--s-3);
  max-width: 20em;
  text-wrap: balance;
}

/* ========================================================================
   12. ARTICLE TEMPLATE V2.1 — luxuriös lesbar
   ======================================================================== */

.single article {
  padding-block: clamp(56px, 7vw, 96px);
}

/* Article Header — Titel, Meta */
.single header.entry-header,
.single .entry-header {
  max-width: var(--content-width);
  margin: 0 auto var(--s-9);
}

.single .entry-title {
  font-size: clamp(3.5rem, 5.5vw, 4.75rem); /* V3: 56-76 */
  line-height: 1.04;
  letter-spacing: -0.022em;
  margin: 0 0 var(--s-7); /* 48px → Lead */
  text-wrap: balance;
  max-width: 14em;
}

.single .entry-meta,
.single .ct-meta-element {
  font-size: var(--t-meta);
  letter-spacing: 0.06em;
  margin-bottom: var(--s-9); /* 96px → Hero (V3) */
  color: var(--c-asche);
}

/* Article Body */
.single .entry-content {
  max-width: var(--content-width);
  margin-inline: auto;
}

.single .entry-content > * {
  max-width: var(--content-width);
  margin-inline: auto;
}

.single .entry-content p,
.single .entry-content li {
  font-size: var(--t-body);     /* 19px */
  line-height: 1.78;            /* mehr Atem */
  color: var(--c-espresso);
}

.single .entry-content p { margin-block: var(--s-5); }

.single .entry-content h2 {
  font-size: clamp(2.25rem, 3.5vw, 3rem); /* V3: 36-48 */
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin-block: 144px var(--s-5);  /* V3: 144px vor H2 — Kapitelgefühl */
}

.single .entry-content h3 {
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  margin-block: var(--s-8) var(--s-4);
}

/* Lead direkt nach H1 */
.single .entry-content > .lead,
.single .entry-content > p:first-of-type {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.5;
  margin-bottom: var(--s-7);
  color: var(--c-espresso);
}

/* Hero Image — V3 mehr Bühne */
.single .entry-content > .hero-image:first-child,
.single .entry-content > .wp-block-image:first-child {
  margin-top: 0;
  margin-bottom: var(--s-10); /* 128px nach Hero, vor Body */
}

/* V3: vor dem Article-Header Top-Whitespace */
.single article {
  padding-block: 120px clamp(72px, 9vw, 96px) !important;
}

/* --- PULL-QUOTE — breite Bühne --- */
blockquote, .wp-block-quote {
  border: none !important;
  border-left: 3px solid var(--c-crema) !important;
  background: transparent !important;
  padding: 0 0 0 var(--s-6) !important;
  margin: var(--s-9) auto !important;
  max-width: var(--pullquote-width);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.008em;
  color: var(--c-espresso);
}

blockquote p, .wp-block-quote p {
  font-family: var(--font-display);
  font-size: inherit;
  line-height: inherit;
  margin: 0;
}

/* ========================================================================
   13. PUF vs ROUTINE — V4 entkartet: kein BG, kein Border, pure Typo
   ======================================================================== */

.cremista-pufix, .cremista-routine {
  background: transparent !important;
  border: none !important;
  border-left: none !important;
  border-radius: 0;
  padding: 0;
  margin: var(--s-8) auto !important;
  max-width: var(--content-width);
  box-shadow: none !important;
  position: relative;
}

/* V4: kleines Eyebrow-Label statt Box-Header */
.cremista-pufix h3, .cremista-pufix h4,
.cremista-routine h3, .cremista-routine h4 {
  font-family: var(--font-body) !important;
  font-size: var(--t-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 var(--s-4);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--c-stein);
}

.cremista-pufix h3, .cremista-pufix h4 { color: var(--c-crema-dark); }
.cremista-routine h3, .cremista-routine h4 { color: var(--c-grau); }

.cremista-routine ol { padding-left: var(--s-5); margin: 0; }
.cremista-routine ol li { margin-bottom: var(--s-3); }
.cremista-routine ol li::marker {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--c-grau);
}

.cremista-pufix > div + div { margin-top: var(--s-4); }

/* ========================================================================
   14. DIAGNOSE-TABELLE
   ======================================================================== */

.diagnose-tabelle, .wp-block-table.diagnose-tabelle {
  max-width: 840px;                              /* V4: breiter als Body */
  margin: var(--s-8) auto !important;
}

/* V4: Alle Artikel-Tabellen breiter als Fließtext */
.single .wp-block-table:not(.diagnose-tabelle) { max-width: 840px; margin-inline: auto; }

.diagnose-tabelle table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9375rem;
}

.diagnose-tabelle th,
.diagnose-tabelle td {
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--c-hairline);
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

.diagnose-tabelle th {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  font-size: var(--t-eyebrow);
  letter-spacing: 0.06em;
  color: var(--c-eukalyptus);
}

/* ========================================================================
   15. FOOTER
   ======================================================================== */

.ct-footer, footer[data-id="footer"] {
  background: var(--c-espresso) !important;
  color: var(--c-auf-dunkel);
}

.ct-footer * { color: var(--c-auf-dunkel) !important; }

.ct-footer a {
  text-decoration: underline;
  text-decoration-color: rgba(198, 162, 122, 0.5);
}

/* ========================================================================
   16. VERBOTS-ENFORCEMENT
   ======================================================================== */

.editorial-card, .cornerstone-card, .cremista-pufix, .cremista-routine,
.image-placeholder, .wp-block-image, .wp-block-image figure,
.wp-block-group, .ct-section, [class*="ct-card"] {
  box-shadow: none !important;
}

.wp-block-button__link, .ct-button, input,
.editorial-card, .cornerstone-card, .cremista-pufix, .cremista-routine,
.wp-block-image img, .image-placeholder {
  border-radius: 2px !important;
}

[class*="ct-fade-in"], [class*="ct-animate"],
.has-animation, [data-animation] {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================================================
   17. MOBILE PASS
   ======================================================================== */

@media (max-width: 1023px) {
  /* HERO — Text first */
  .home-hero-grid { flex-direction: column; }
  .home-hero-text, .home-hero-image {
    flex-basis: 100% !important;
    width: 100% !important;
    max-width: 100%;
  }
  .home-hero-image { margin-right: 0 !important; margin-top: var(--s-7); }

  /* Featured Story stack: Text first */
  .featured-story-grid { flex-direction: column; }
  .featured-story-image, .featured-story-text {
    flex-basis: 100% !important;
  }
  .featured-story-image { order: 2; margin-top: var(--s-5); }
  .featured-story-text { order: 1; }

  /* Secondary cards stack */
  .featured-secondary-grid { gap: var(--s-7); }

  /* Cornerstones stack */
  .home-grundlagen .cornerstones-grid { gap: var(--s-6); }

  /* Journal — Primary first, both stacked */
  .home-journal .journal-grid {
    flex-direction: column;
    gap: var(--s-7);
  }
  .journal-primary, .journal-secondary { flex-basis: 100% !important; }

  /* Section spacing kleiner */
  section.section-papier,
  section.section-porzellan,
  section.section-espresso {
    padding-block: var(--section-py-mobile);
  }
}

@media (max-width: 768px) {
  .home-hero { padding-block: 56px 48px; }
  .home-mythos { padding-block: 64px; }
}
