/*
Theme Name: Konversion Pilot Child
Theme URI: https://konversion-pilot.de
Description: Child-Theme von Twenty Twenty-Five mit lokal gehosteten Schriften Inter (Standard), Playfair Display (Zitate) und IBM Plex Mono (Eyebrow) und den Blog-Komponenten von konversion-pilot.de.
Author: Marco Steinführer
Template: twentytwentyfive
Version: 1.0.1
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: konversion-pilot-child
*/


/* ─────────────────────────────────────────
   0. SCHRIFTEN – lokal gehostet (kein Google-Server)
   Dateien liegen in /assets/fonts/. Variable Font Inter (100–900, normal + kursiv), Latin-Subset
   (enthält ä ö ü ß, €, Anführungszeichen, Gedankenstrich).
───────────────────────────────────────── */

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url('assets/fonts/playfair-display/playfair-display-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-display: swap;
  font-weight: 400 900;
  src: url('assets/fonts/playfair-display/playfair-display-latin-wght-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('assets/fonts/ibm-plex-mono/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('assets/fonts/ibm-plex-mono/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('assets/fonts/inter/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url('assets/fonts/inter/inter-latin-wght-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ─────────────────────────────────────────
   1. CSS-VARIABLEN
───────────────────────────────────────── */
:root {
  --kp-ink:       #1c1c1c;
  --kp-accent:    #E6498C;
  --kp-accent-lt: #f0e8e0;
  --kp-muted:     #7a7570;
  --kp-border:    #dedad4;

  /* Neu ergänzt: wurden in deiner CSS genutzt, aber nirgends definiert.
     Falls du sie anderswo schon definierst, diese Zeilen löschen. */
  --kp-serif:     'Inter', system-ui, sans-serif;
  --kp-sans:      'Inter', system-ui, sans-serif;
  --kp-mono:      'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --kp-line:      #dedad4;
  --kp-line-soft: #e5e2dc;
  --kp-ink-soft:  #4a3d32;
}


/* ─────────────────────────────────────────
   1b. HEADER & FOKUS
───────────────────────────────────────── */
header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 100;
}

:where(.wp-site-blocks *:focus) {
  outline-width: 2px;
  outline-style: solid;
}


/* ─────────────────────────────────────────
   2. TAKEAWAY BOX – Paper (hell)
───────────────────────────────────────── */

.kp-takeaway {
  padding: 36px 40px 36px 44px;
  position: relative;
  margin-top: 32px;
  margin-bottom: 32px;
}

.kp-takeaway::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--kp-accent);
}

.kp-takeaway.paper {
  background: #ffffff;
  color: var(--kp-ink);
}

.kp-takeaway.paper h3,
.kp-takeaway.paper .kp-heading {
  font-family: 'Inter', sans-serif !important;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--kp-ink);
  letter-spacing: 0.1em;
}

.kp-takeaway.paper ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.kp-takeaway.paper ul li {
  display: flex;
  gap: 14px;
  font-size: 1rem;
  color: var(--kp-ink-soft);
  line-height: 1.55;
}

.kp-takeaway.paper ul li::before {
  content: '—';
  color: var(--kp-accent);
  flex-shrink: 0;
  font-weight: 700;
}

@media (max-width: 480px) {
  .kp-takeaway {
    padding: 28px 24px 28px 32px;
  }
}


/* ─────────────────────────────────────────
   3. QUOTE INLINE
───────────────────────────────────────── */

.kp-quote-inline {
  margin: 32px 0;
}

.kp-quote-inline blockquote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.8rem;
  line-height: 1.55;
  color: var(--kp-ink);
  font-weight: 400;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.kp-quote-inline cite {
  display: block;
  margin-top: 10px;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--kp-muted);
}


/* ─────────────────────────────────────────
   3b. KAPITEL-LABEL
───────────────────────────────────────── */

.kp-quote-chapter {
  padding-top: 2rem;
  padding-bottom: 1rem;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--kp-accent);
}


/* ─────────────────────────────────────────
   4. HEADLINE MARGIN
───────────────────────────────────────── */

h1 {
  margin-bottom: 25px;
}

h2 {
  margin: 15px 0;
}

h3 {
  margin: 15px 0;
}


/* ─────────────────────────────────────────
   5. KATEGORIE-LABEL
   Größe, Farbe und Schrift von Datum, Autor und Kategorien
   kommen jetzt aus der theme.json (core/post-date, core/post-author,
   core/post-terms). Hier steht nur noch das Label im Karten-Look.
───────────────────────────────────────── */

.wp-block-post-terms.kp-cat,
.wp-block-post-terms.kp-cat a {
  font-family: var(--kp-mono) !important;
  font-size: 10.5px !important;
  color: var(--kp-accent) !important;
}


/* ─────────────────────────────────────────
   6. TYPOGRAFIE-KLASSEN
───────────────────────────────────────── */

em {
  font-style: italic;
  color: #E6498C;
  font-weight: 400;
}

.kp-display {
  font-family: var(--kp-serif);
  font-size: clamp(48px, 6vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  font-weight: 350;
}

.kp-h1 {
  font-family: var(--kp-serif);
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 1.4;
  letter-spacing: -0.025em;
  font-weight: 350;
}

.kp-h2 {
  font-family: var(--kp-serif);
  font-size: clamp(24px, 3.0vw, 44px);
  line-height: 1.4;
  letter-spacing: -0.02em;
  font-weight: 350;
}

.kp-h3 {
  font-family: var(--kp-serif);
  font-size: clamp(18px, 1.6vw, 28px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.kp-h4 {
  font-family: var(--kp-serif);
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: -0.005em;
  font-weight: 400;
}

.kp-eyebrow-accent {
  display: inline-block;
  font-family: var(--kp-mono);
  font-size: 0.8em;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #E6498C;
  padding-bottom: 15px;
}

.kp-cat {
  font-family: var(--kp-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--kp-accent);
}

.kp-rule {
  height: 1px;
  background: var(--kp-line);
  border: 0;
  margin: 0;
}

.kp-rule-soft {
  height: 1px;
  background: var(--kp-line-soft);
  border: 0;
  margin: 0;
  border-width: 0 0 1px 0;
  color: #cccccc;
}

.kp-rule-ink {
  height: 1px;
  background: var(--kp-ink);
  border: 0;
  margin: 0;
}

.kp-signature {
  font-family: var(--kp-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--kp-ink-soft);
}

/* Primary-Button — Pill, gefüllt */
.kp-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--kp-ink);
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  font-family: var(--kp-sans);
  font-size: 1.1em;
  font-weight: 500;
  transition: transform 0.15s, background 0.15s;
}

.kp-btn-primary:hover {
  transform: translateY(-1px);
}

.kp-btn-primary .arrow {
  transition: transform 0.2s;
}

.kp-btn-primary:hover .arrow {
  transform: translateX(2px);
}


/* kp-btn-primary an Gutenberg-Buttons: Klasse sitzt am Wrapper, Optik gehört auf den Link */
.wp-block-button.kp-btn-primary {
  display: block;
  background: none;
  padding: 0;
  border-radius: 0;
  width: auto;
}

.wp-block-button.kp-btn-primary .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--kp-ink);
  color: #fff;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  font-family: var(--kp-sans);
  font-size: 1.1em;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s;
}

.wp-block-button.kp-btn-primary .wp-block-button__link:hover {
  background: var(--kp-ink);
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .wp-block-button.kp-btn-primary,
  .wp-block-button.kp-btn-primary .wp-block-button__link {
    width: 100%;
    justify-content: center;
  }
}



/* ─────────────────────────────────────────
   7. MOBILE OPTIMIERUNG
   Breakpoints: 768px (Tablet), 480px (Mobil)
───────────────────────────────────────── */

/* ── Tablet (≤ 768px) ── */
@media (max-width: 768px) {

  .kp-display {
    font-size: clamp(36px, 9vw, 56px);
    line-height: 1.05;
  }

  .kp-h1 {
    font-size: clamp(32px, 7vw, 48px);
    line-height: 1.15;
  }

  .kp-h2 {
    font-size: clamp(22px, 4.5vw, 32px);
    line-height: 1.2;
  }

  .kp-h3 {
    font-size: clamp(18px, 3.5vw, 26px);
    line-height: 1.2;
  }

  .kp-quote-inline blockquote {
    font-size: 1.45rem;
    line-height: 1.5;
  }

  .kp-takeaway {
    padding: 28px 28px 28px 36px;
  }

  .kp-takeaway.paper h3,
  .kp-takeaway.paper .kp-heading {
    font-size: 1.6rem;
    letter-spacing: 0.06em;
  }
}

/* ── Mobil (≤ 480px) ── */
@media (max-width: 480px) {

  .kp-display {
    font-size: clamp(28px, 10vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.015em;
  }

  .kp-h1 {
    font-size: clamp(26px, 8.5vw, 38px);
    line-height: 1.18;
    letter-spacing: -0.015em;
  }

  .kp-h2 {
    font-size: clamp(20px, 6vw, 28px);
    line-height: 1.25;
    letter-spacing: -0.01em;
  }

  .kp-h3 {
    font-size: clamp(17px, 5vw, 22px);
    line-height: 1.25;
    letter-spacing: 0;
  }

  .kp-h4 {
    font-size: 18px;
    line-height: 1.3;
  }

  .kp-quote-inline {
    margin: 24px 0;
  }

  .kp-quote-inline blockquote {
    font-size: 1.2rem;
    line-height: 1.5;
  }

  .kp-takeaway.paper h3,
  .kp-takeaway.paper .kp-heading {
    font-size: 1.4rem;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
  }

  .kp-eyebrow-accent {
    font-size: 0.72em;
    padding-bottom: 10px;
  }

  .kp-btn-primary {
    font-size: 1rem;
    padding: 10px 18px;
    width: 100%;
    justify-content: center;
  }

  .kp-signature {
    font-size: 13px;
  }

  .kp-quote-chapter {
    padding-top: 1.25rem;
    padding-bottom: 0.75rem;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
  }

  h1 {
    margin-bottom: 18px;
  }

  h2 {
    margin: 12px 0;
  }

  h3 {
    margin: 10px 0;
  }
}

@media (max-width: 782px) {
  ul.wp-block-post-template.columns-2,
  ul.wp-block-post-template.columns-3 {
    grid-template-columns: 1fr !important;
  }
}


/* ─────────────────────────────────────────
   8. BEITRAGS-LOOP IN SPALTEN
───────────────────────────────────────── */

.two-col-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .two-col-grid {
    grid-template-columns: 1fr;
  }
}


/* ─────────────────────────────────────────
   9. FOOTER
───────────────────────────────────────── */

/* Internal Link Juicer — Link-Styling */
.ilj-link {
  color: #ffffff;
  font-size: 9px !important;
  font-weight: 400 !important;
  text-decoration: none !important;
}

.ilj-link:hover {
  color: #ffffff;
  text-decoration: underline !important;
}

/* Footer Schriftgröße vereinheitlichen
   ACHTUNG: greift nur, wenn der Footer wieder eine Columns-Block-Struktur
   mit "Small"-Schriftgröße hat (siehe Hinweis nach dem Themewechsel). */
.wp-block-columns.has-small-font-size *,
.wp-block-columns.has-small-font-size .wp-block-navigation a,
.wp-block-columns.has-small-font-size p {
  font-size: 12px !important;
  line-height: 1.5;
  font-style: normal !important;
  text-decoration: none !important;
}


/* ─────────────────────────────────────────
   10. TABELLEN
───────────────────────────────────────── */

.kp-table-wrap table {
  text-align: left;
}

.kp-table-wrap th,
.kp-table-wrap td {
  text-align: left;
  vertical-align: top;
  padding: 18px 24px;
}

.kp-table-wrap tbody tr {
  border-bottom: 1px solid var(--kp-line-soft);
}

.kp-table-wrap tbody td {
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--kp-line-soft);
}

/* ─────────────────────────────────────────
   11. Scroll-Effekt
───────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
html { scroll-behavior: smooth; }
