/* aiblog-editorial — Frontend Token-Layer
 *
 * Wird zusätzlich zu theme.json-generierten Styles geladen, für:
 *  - Block-Pattern-spezifische Styles, die theme.json nicht abdeckt
 *  - Editorial-Hover-States, Focus-Rings, kleinere Polish-Details
 */

:root {
  --aiblog-focus-ring: 0 0 0 3px rgba(6, 182, 212, 0.25);
}

/* Smooth, sichtbarer Focus für Tastatur-Navigation */
:focus-visible {
  outline: none;
  box-shadow: var(--aiblog-focus-ring);
  border-radius: 4px;
}

/* Editorial: Bilder in Cards mit weichem Border */
.wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Categories-Pill-Look in Article Cards */
.wp-block-post-terms a {
  text-decoration: none;
}
.wp-block-post-terms a:hover {
  color: var(--wp--preset--color--ink-900);
}

/* Article Titel: Hover-Effekt */
.wp-block-post-title a {
  text-decoration: none;
  transition: color 120ms ease;
}
.wp-block-post-title a:hover {
  color: var(--wp--preset--color--accent-strong);
}

/* Tabellen — Editorial-Stil */
.wp-block-table table {
  border-collapse: collapse;
  width: 100%;
}
.wp-block-table th,
.wp-block-table td {
  border: 1px solid var(--wp--preset--color--ink-300);
  padding: 0.75rem 1rem;
}
.wp-block-table thead {
  background: var(--wp--preset--color--ink-100);
}

/* Drop-Cap optional über Klassen-Modifier */
.has-drop-cap:not(:focus)::first-letter {
  font-family: var(--wp--preset--font-family--fraunces);
  font-size: 4.5em;
  font-weight: 700;
  line-height: 0.85;
  float: left;
  margin: 0.1em 0.12em 0 0;
  color: var(--wp--preset--color--ink-900);
}

/* Code-Block: Sprache-Badge möglich via data-language attribute */
pre.wp-block-code {
  position: relative;
  overflow-x: auto;
}
pre.wp-block-code[data-language]::before {
  content: attr(data-language);
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--wp--preset--color--ink-500);
}

/* Klassen-Modifier für Eilmeldungen / Schweiz-Tags */
.is-style-swiss-tag,
.aiblog-tag-swiss {
  display: inline-block;
  background: var(--wp--preset--color--swiss);
  color: var(--wp--preset--color--paper);
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Site-Title Hover */
.wp-block-site-title a {
  text-decoration: none;
}
.wp-block-site-title a:hover {
  color: var(--wp--preset--color--accent-strong);
}

/* Navigation: Active-State (WP fügt .current-menu-item hinzu) */
.wp-block-navigation .current-menu-item > a {
  color: var(--wp--preset--color--accent-strong);
  font-weight: 600;
}

/* Selection-Color */
::selection {
  background: var(--wp--preset--color--accent-soft);
  color: var(--wp--preset--color--ink-900);
}

/* Smooth Scroll für Anchor-Links */
html {
  scroll-behavior: smooth;
}

/* Container: extra-breite Bilder im Single sollen bis 1140px gehen, nicht über */
.alignwide .wp-block-post-featured-image img {
  border-radius: 12px;
}

/* ─────────────────────────────────────────────────────────────
 * Per-Category Accent Theming
 *
 * The <body> gets a `cat-<slug>` class (single + archive only)
 * thanks to the body_class filter in functions.php. The CSS
 * below shifts accent-colored elements to the category-specific
 * hue without touching theme.json.
 * ───────────────────────────────────────────────────────────── */

/* Tutorials → Emerald */
body.cat-tutorials .wp-block-post-terms a,
body.cat-tutorials .has-accent-strong-color {
  color: var(--wp--preset--color--tut-tutorials) !important;
}
body.cat-tutorials .has-accent-strong-background-color {
  background-color: var(--wp--preset--color--tut-tutorials) !important;
}

/* Reviews → Amber */
body.cat-reviews .wp-block-post-terms a,
body.cat-reviews .has-accent-strong-color {
  color: var(--wp--preset--color--tut-reviews) !important;
}
body.cat-reviews .has-accent-strong-background-color {
  background-color: var(--wp--preset--color--tut-reviews) !important;
}

/* Vergleiche → Magenta */
body.cat-vergleiche .wp-block-post-terms a,
body.cat-vergleiche .has-accent-strong-color {
  color: var(--wp--preset--color--tut-vergleiche) !important;
}
body.cat-vergleiche .has-accent-strong-background-color {
  background-color: var(--wp--preset--color--tut-vergleiche) !important;
}

/* KI-News uses the default `accent`/`accent-strong` (cyan) — no override needed. */

/* ─────────────────────────────────────────────────────────────
 * Article-Card Cat-Tag Coloring (inside the listing grids)
 *
 * In archive/home/front-page card loops, the body class is set
 * to the parent route (not per-card). So we color tags per-link
 * via attribute matching of the href.
 * ───────────────────────────────────────────────────────────── */
.wp-block-post-terms a[href*="/category/tutorials/"] {
  color: var(--wp--preset--color--tut-tutorials);
}
.wp-block-post-terms a[href*="/category/reviews/"] {
  color: var(--wp--preset--color--tut-reviews);
}
.wp-block-post-terms a[href*="/category/vergleiche/"] {
  color: var(--wp--preset--color--tut-vergleiche);
}
.wp-block-post-terms a[href*="/category/ki-news/"] {
  color: var(--wp--preset--color--accent-strong);
}

/* ─────────────────────────────────────────────────────────────
 * Hero Image Overlay — shared utility classes for hero blocks
 * ───────────────────────────────────────────────────────────── */
.aiblog-hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  isolation: isolate;
  /* Break out of any parent constrained-layout container — full viewport width */
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
}
.aiblog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 15, 0.15) 0%, rgba(10, 10, 15, 0.75) 100%);
  z-index: -1;
  pointer-events: none;
}
.aiblog-hero--ki-news    { background-image: linear-gradient(135deg, #0A0A0F 0%, #0E7490 100%); }
.aiblog-hero--tutorials  { background-image: linear-gradient(135deg, #0A0A0F 0%, #047857 100%); }
.aiblog-hero--reviews    { background-image: linear-gradient(135deg, #0A0A0F 0%, #B45309 100%); }
.aiblog-hero--vergleiche { background-image: linear-gradient(135deg, #0A0A0F 0%, #9D174D 100%); }

.aiblog-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: var(--wp--preset--spacing--90) var(--wp--preset--spacing--40);
  color: var(--wp--preset--color--paper);
}
.aiblog-hero__eyebrow {
  font-family: var(--wp--preset--font-family--inter);
  font-size: var(--wp--preset--font-size--xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  margin: 0 0 var(--wp--preset--spacing--30);
}
.aiblog-hero__title {
  font-family: var(--wp--preset--font-family--fraunces);
  /* MASSIVE — magazine-cover scale: 56px mobile → 140px desktop FHD */
  font-size: clamp(3.5rem, 8vw + 0.5rem, 8.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin: 0 0 var(--wp--preset--spacing--50);
  color: var(--wp--preset--color--paper);
  max-width: 1100px;
}
.aiblog-hero__lead {
  font-family: var(--wp--preset--font-family--fraunces);
  font-size: var(--wp--preset--font-size--lg);
  font-weight: 400;
  line-height: 1.5;
  margin: 0 0 var(--wp--preset--spacing--50);
  color: var(--wp--preset--color--paper);
  opacity: 0.85;
  max-width: 720px;
}
.aiblog-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wp--preset--spacing--40);
  align-items: center;
  font-family: var(--wp--preset--font-family--inter);
  font-size: var(--wp--preset--font-size--xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wp--preset--color--paper);
  opacity: 0.8;
}
.aiblog-hero__tag {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  background: var(--wp--preset--color--paper);
  color: var(--wp--preset--color--ink-900);
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.aiblog-hero__tag--ki-news    { color: var(--wp--preset--color--accent-strong); }
.aiblog-hero__tag--tutorials  { color: var(--wp--preset--color--tut-tutorials); }
.aiblog-hero__tag--reviews    { color: var(--wp--preset--color--tut-reviews); }
.aiblog-hero__tag--vergleiche { color: var(--wp--preset--color--tut-vergleiche); }

@media (max-width: 768px) {
  .aiblog-hero { min-height: 70vh; }
  .aiblog-hero__inner { padding: var(--wp--preset--spacing--80) var(--wp--preset--spacing--40); }
}

/* ─────────────────────────────────────────────────────────────
 * Section eyebrows — utility class for non-pattern places
 * ───────────────────────────────────────────────────────────── */
.aiblog-eyebrow {
  font-family: var(--wp--preset--font-family--inter);
  font-size: var(--wp--preset--font-size--xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}
.aiblog-eyebrow--ki-news    { color: var(--wp--preset--color--accent-strong); }
.aiblog-eyebrow--tutorials  { color: var(--wp--preset--color--tut-tutorials); }
.aiblog-eyebrow--reviews    { color: var(--wp--preset--color--tut-reviews); }
.aiblog-eyebrow--vergleiche { color: var(--wp--preset--color--tut-vergleiche); }

/* ─────────────────────────────────────────────────────────────
 * Card image fallback (when post has no featured image, render
 * a category-colored gradient inside the .wp-block-post-featured-image
 * empty wrapper — only relevant when our pattern explicitly applies
 * this class).
 * ───────────────────────────────────────────────────────────── */
.aiblog-card__image-fallback {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background-color: var(--wp--preset--color--ink-100);
  background-size: cover;
  background-position: center;
}
.aiblog-card__image-fallback--ki-news    { background-image: linear-gradient(135deg, #134E4A 0%, #0E7490 100%); }
.aiblog-card__image-fallback--tutorials  { background-image: linear-gradient(135deg, #064E3B 0%, #047857 100%); }
.aiblog-card__image-fallback--reviews    { background-image: linear-gradient(135deg, #78350F 0%, #B45309 100%); }
.aiblog-card__image-fallback--vergleiche { background-image: linear-gradient(135deg, #831843 0%, #9D174D 100%); }

/* ─────────────────────────────────────────────────────────────
 * Dark Section utility — for pull-statement-dark + newsletter
 * ───────────────────────────────────────────────────────────── */
.aiblog-dark-section {
  background-color: var(--wp--preset--color--ink-900);
  color: var(--wp--preset--color--paper);
}
.aiblog-dark-section h1,
.aiblog-dark-section h2,
.aiblog-dark-section h3,
.aiblog-dark-section h4 {
  color: var(--wp--preset--color--paper);
}
.aiblog-dark-section p { color: rgba(250, 250, 247, 0.85); }
.aiblog-dark-section a { color: var(--wp--preset--color--accent); }
.aiblog-dark-section a:hover { color: var(--wp--preset--color--paper); }

/* ═════════════════════════════════════════════════════════════
 * EDITORIAL OVERHAUL v0.5 — Magazine Maximum
 * ═════════════════════════════════════════════════════════════ */

/* ─── 1. NEWS-TICKER STRIP (top of every page) ──────────────── */
.aiblog-ticker {
  width: 100%;
  background: var(--wp--preset--color--ink-900);
  color: var(--wp--preset--color--paper);
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--wp--preset--color--ink-700);
}
.aiblog-ticker__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.aiblog-ticker__date {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.aiblog-ticker__date::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--wp--preset--color--accent);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
  animation: aiblog-ticker-pulse 2.4s ease-in-out infinite;
}
@keyframes aiblog-ticker-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}
.aiblog-ticker__edition {
  opacity: 0.7;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.aiblog-ticker__nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.aiblog-ticker__nav a {
  color: var(--wp--preset--color--paper);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 120ms;
}
.aiblog-ticker__nav a:hover { color: var(--wp--preset--color--accent); }
.aiblog-ticker__nav .accent {
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--ink-900);
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.6875rem;
}
.aiblog-ticker__nav .accent:hover {
  background: var(--wp--preset--color--paper);
  color: var(--wp--preset--color--ink-900);
}
@media (max-width: 768px) {
  .aiblog-ticker__edition { display: none; }
  .aiblog-ticker__nav { gap: 0.75rem; font-size: 0.6875rem; }
}

/* ─── 2. MASTHEAD (logo-row in header) ──────────────────────── */
.aiblog-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 1.5rem;
  max-width: 1320px;
  margin: 0 auto;
  border-bottom: 3px double var(--wp--preset--color--ink-900);
}
.aiblog-masthead__brand {
  font-family: var(--wp--preset--font-family--fraunces);
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--wp--preset--color--ink-900);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.125em;
}
.aiblog-masthead__brand .dot {
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  background: var(--wp--preset--color--accent);
  border-radius: 50%;
  margin-left: 0.05em;
  vertical-align: baseline;
}
.aiblog-masthead__brand .ch {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.45em;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--wp--preset--color--ink-500);
  text-transform: uppercase;
  margin-left: 0.5em;
  align-self: flex-end;
  padding-bottom: 0.2em;
}
.aiblog-masthead__nav {
  display: flex;
  gap: 1.75rem;
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.aiblog-masthead__nav a {
  color: var(--wp--preset--color--ink-700);
  text-decoration: none;
  position: relative;
  padding-bottom: 0.25rem;
  transition: color 120ms;
}
.aiblog-masthead__nav a:hover { color: var(--wp--preset--color--accent-strong); }
.aiblog-masthead__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--wp--preset--color--accent-strong);
  transition: width 160ms;
}
.aiblog-masthead__nav a:hover::after { width: 100%; }
@media (max-width: 768px) {
  .aiblog-masthead { padding: 1rem 1.25rem 1.25rem; }
  .aiblog-masthead__nav { display: none; }
}

/* ─── 3. HERO ENHANCEMENTS (asymmetric, dense above-fold) ───── */
.aiblog-hero__inner {
  padding: var(--wp--preset--spacing--90) var(--wp--preset--spacing--50);
}
.aiblog-hero__lead {
  font-size: var(--wp--preset--font-size--xl);
}
.aiblog-hero__meta {
  border-top: 1px solid rgba(250, 250, 247, 0.25);
  padding-top: 1rem;
  margin-top: 1rem;
}

/* ─── 4. NUMBERED SECTION MARKERS ───────────────────────────── */
.aiblog-section-marker {
  display: flex;
  align-items: stretch;
  gap: var(--wp--preset--spacing--40);
  margin-bottom: var(--wp--preset--spacing--50);
}
.aiblog-section-marker__bar {
  flex-shrink: 0;
  width: 4px;
  background: var(--wp--preset--color--accent-strong);
}
.aiblog-section-marker__bar--tutorials  { background: var(--wp--preset--color--tut-tutorials); }
.aiblog-section-marker__bar--reviews    { background: var(--wp--preset--color--tut-reviews); }
.aiblog-section-marker__bar--vergleiche { background: var(--wp--preset--color--tut-vergleiche); }

.aiblog-section-marker__no {
  font-family: var(--wp--preset--font-family--fraunces);
  font-size: clamp(3rem, 4vw + 1rem, 4.5rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--wp--preset--color--ink-900);
  font-feature-settings: "tnum" 1;
}
.aiblog-section-marker__no--inverse { color: var(--wp--preset--color--paper); }

.aiblog-section-marker__content { flex: 1; padding-top: 0.25rem; }

.aiblog-section-marker__eyebrow {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  margin: 0 0 0.625rem;
  color: var(--wp--preset--color--accent-strong);
}
.aiblog-section-marker__eyebrow--tutorials  { color: var(--wp--preset--color--tut-tutorials); }
.aiblog-section-marker__eyebrow--reviews    { color: var(--wp--preset--color--tut-reviews); }
.aiblog-section-marker__eyebrow--vergleiche { color: var(--wp--preset--color--tut-vergleiche); }

.aiblog-section-marker__title {
  font-family: var(--wp--preset--font-family--fraunces);
  font-size: clamp(1.75rem, 3vw + 0.5rem, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  color: var(--wp--preset--color--ink-900);
}
.aiblog-section-marker__title--inverse { color: var(--wp--preset--color--paper); }
.aiblog-section-marker__link {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  align-self: flex-end;
  color: var(--wp--preset--color--ink-700);
  transition: color 120ms, transform 120ms;
}
.aiblog-section-marker__link:hover { color: var(--wp--preset--color--accent-strong); transform: translateX(3px); }
.aiblog-section-marker__link--tutorials  { color: var(--wp--preset--color--tut-tutorials); }
.aiblog-section-marker__link--reviews    { color: var(--wp--preset--color--tut-reviews); }
.aiblog-section-marker__link--vergleiche { color: var(--wp--preset--color--tut-vergleiche); }

/* Section banner — image header for category sections */
.aiblog-section-banner {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  background-color: var(--wp--preset--color--ink-900);
  isolation: isolate;
  overflow: hidden;
}
.aiblog-section-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,10,15,0.85) 0%, rgba(10,10,15,0.55) 60%, rgba(10,10,15,0.3) 100%);
  z-index: -1;
}
.aiblog-section-banner--ki-news::before    { background: linear-gradient(90deg, rgba(8,72,90,0.92) 0%, rgba(10,10,15,0.5) 100%); }
.aiblog-section-banner--tutorials::before  { background: linear-gradient(90deg, rgba(4,78,55,0.92) 0%, rgba(10,10,15,0.5) 100%); }
.aiblog-section-banner--reviews::before    { background: linear-gradient(90deg, rgba(120,53,15,0.92) 0%, rgba(10,10,15,0.5) 100%); }
.aiblog-section-banner--vergleiche::before { background: linear-gradient(90deg, rgba(131,24,67,0.92) 0%, rgba(10,10,15,0.5) 100%); }

.aiblog-section-banner__inner {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.75rem;
}
.aiblog-section-banner .aiblog-section-marker { margin-bottom: 0; }
.aiblog-section-banner .aiblog-section-marker__no { color: var(--wp--preset--color--paper); font-size: clamp(3.5rem, 5vw + 1rem, 5.5rem); }
.aiblog-section-banner .aiblog-section-marker__title { color: var(--wp--preset--color--paper); font-size: clamp(2rem, 3.5vw + 0.5rem, 3.5rem); }
.aiblog-section-banner .aiblog-section-marker__eyebrow {
  font-size: 0.75rem;
  color: var(--wp--preset--color--paper);
  opacity: 0.85;
}
.aiblog-section-banner .aiblog-section-marker__bar { width: 6px; background: var(--wp--preset--color--paper); }
.aiblog-section-banner--tutorials .aiblog-section-marker__bar  { background: var(--wp--preset--color--tut-tutorials); }
.aiblog-section-banner--reviews .aiblog-section-marker__bar    { background: var(--wp--preset--color--tut-reviews); }
.aiblog-section-banner--vergleiche .aiblog-section-marker__bar { background: var(--wp--preset--color--tut-vergleiche); }
.aiblog-section-banner .aiblog-section-marker__link {
  color: var(--wp--preset--color--paper);
  background: rgba(250,250,247,0.15);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  backdrop-filter: blur(8px);
}
.aiblog-section-banner .aiblog-section-marker__link:hover {
  background: var(--wp--preset--color--paper);
  color: var(--wp--preset--color--ink-900);
}

/* ─── 5. DOT-GRID PATTERN BACKGROUND for light sections ─────── */
.aiblog-paper-pattern {
  background-color: var(--wp--preset--color--paper);
  background-image:
    radial-gradient(circle, rgba(10, 10, 15, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 0 0;
}

/* ─── 6. DROP-CAP for editorial leads ───────────────────────── */
.aiblog-hero__lead.has-drop-cap::first-letter,
body.single-post .entry-content > p:first-of-type::first-letter {
  font-family: var(--wp--preset--font-family--fraunces);
  font-size: 4.5em;
  font-weight: 800;
  line-height: 0.85;
  float: left;
  margin: 0.05em 0.12em 0 0;
  color: var(--wp--preset--color--accent-strong);
}
body.single-post.cat-tutorials  .entry-content > p:first-of-type::first-letter { color: var(--wp--preset--color--tut-tutorials); }
body.single-post.cat-reviews    .entry-content > p:first-of-type::first-letter { color: var(--wp--preset--color--tut-reviews); }
body.single-post.cat-vergleiche .entry-content > p:first-of-type::first-letter { color: var(--wp--preset--color--tut-vergleiche); }

/* ─── 7. CARD VARIETY classes (used by section patterns) ────── */

/* Big featured card — image-on-top, fills column */
.aiblog-card-big {
  display: block;
  text-decoration: none;
}
.aiblog-card-big__img {
  display: block;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: var(--wp--preset--color--ink-100);
  border-radius: 8px;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}
.aiblog-card-big__tag {
  position: absolute;
  top: 0.875rem;
  left: 0.875rem;
  background: var(--wp--preset--color--paper);
  color: var(--wp--preset--color--ink-900);
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.aiblog-card-big__title {
  font-family: var(--wp--preset--font-family--fraunces);
  font-size: clamp(1.5rem, 2vw + 0.5rem, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5rem;
  color: var(--wp--preset--color--ink-900);
}
.aiblog-card-big__excerpt {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--wp--preset--color--ink-500);
  margin: 0 0 0.75rem;
}
.aiblog-card-big__meta {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wp--preset--color--ink-500);
}

/* Side-by-side card — image-left text-right, compact */
.aiblog-card-side {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-top: 1px solid var(--wp--preset--color--ink-300);
  text-decoration: none;
}
.aiblog-card-side:first-child { border-top: 0; padding-top: 0; }
.aiblog-card-side__img {
  display: block;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  background-color: var(--wp--preset--color--ink-100);
  border-radius: 4px;
}
.aiblog-card-side__tag {
  display: inline-block;
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent-strong);
  margin-bottom: 0.25rem;
}
.aiblog-card-side__tag--tutorials  { color: var(--wp--preset--color--tut-tutorials); }
.aiblog-card-side__tag--reviews    { color: var(--wp--preset--color--tut-reviews); }
.aiblog-card-side__tag--vergleiche { color: var(--wp--preset--color--tut-vergleiche); }
.aiblog-card-side__title {
  font-family: var(--wp--preset--font-family--fraunces);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 0.25rem;
  color: var(--wp--preset--color--ink-900);
}
.aiblog-card-side__meta {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.6875rem;
  color: var(--wp--preset--color--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Compact text-only card (no image) */
.aiblog-card-compact {
  display: block;
  border-left: 3px solid var(--wp--preset--color--accent-strong);
  padding: 0.625rem 0 0.625rem 1rem;
  text-decoration: none;
  margin-bottom: 1rem;
}
.aiblog-card-compact--tutorials  { border-left-color: var(--wp--preset--color--tut-tutorials); }
.aiblog-card-compact--reviews    { border-left-color: var(--wp--preset--color--tut-reviews); }
.aiblog-card-compact--vergleiche { border-left-color: var(--wp--preset--color--tut-vergleiche); }

/* ─── 8. FEATURED RAIL (asymmetric hero: 65% hero + 35% rail) ─ */
.aiblog-featured-row {
  display: grid;
  grid-template-columns: 1.85fr 1fr;
  gap: var(--wp--preset--spacing--60);
  align-items: stretch;
}
@media (max-width: 1024px) {
  .aiblog-featured-row { grid-template-columns: 1fr; }
}

/* ─── 9. FOOTER MASTHEAD ────────────────────────────────────── */
.aiblog-masthead-footer {
  background: var(--wp--preset--color--ink-900);
  color: var(--wp--preset--color--paper);
  padding: var(--wp--preset--spacing--80) var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: var(--wp--preset--spacing--90);
}
.aiblog-masthead-footer__inner {
  max-width: 1320px;
  margin: 0 auto;
}
.aiblog-masthead-footer__title {
  font-family: var(--wp--preset--font-family--fraunces);
  font-size: clamp(2.5rem, 5vw + 0.5rem, 4rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0 0 var(--wp--preset--spacing--30);
  color: var(--wp--preset--color--paper);
}
.aiblog-masthead-footer__title .dot { color: var(--wp--preset--color--accent); }
.aiblog-masthead-footer__edition {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 250, 247, 0.6);
  margin: 0 0 var(--wp--preset--spacing--60);
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.aiblog-masthead-footer__edition span::before { content: "· "; opacity: 0.5; margin-right: 0.25rem; }
.aiblog-masthead-footer__edition span:first-child::before { content: ""; margin: 0; }
.aiblog-masthead-footer__cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--wp--preset--spacing--60);
  border-top: 1px solid rgba(250, 250, 247, 0.15);
  padding-top: var(--wp--preset--spacing--50);
}
@media (max-width: 768px) {
  .aiblog-masthead-footer__cols { grid-template-columns: 1fr; gap: var(--wp--preset--spacing--40); }
}
.aiblog-masthead-footer__col h6 {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent);
  margin: 0 0 1rem;
}
.aiblog-masthead-footer__col p,
.aiblog-masthead-footer__col li {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(250, 250, 247, 0.75);
  margin: 0 0 0.5rem;
}
.aiblog-masthead-footer__col a {
  color: rgba(250, 250, 247, 0.75);
  text-decoration: none;
  transition: color 120ms;
}
.aiblog-masthead-footer__col a:hover { color: var(--wp--preset--color--accent); }
.aiblog-masthead-footer__col ul { list-style: none; padding: 0; margin: 0; }
.aiblog-masthead-footer__copy {
  border-top: 1px solid rgba(250, 250, 247, 0.15);
  margin-top: var(--wp--preset--spacing--60);
  padding-top: var(--wp--preset--spacing--40);
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.75rem;
  color: rgba(250, 250, 247, 0.5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ═════════════════════════════════════════════════════════════
 * EDITORIAL POLISH v0.6 — Reading-Experience + Share + Wordmark
 * ═════════════════════════════════════════════════════════════ */

/* ─── Reading Progress Bar (Single-Posts only, top of viewport)
 *     v0.7 — Magic-Polish: GPU-accelerated scaleX transform,
 *     subtle glow, cubic-bezier easing (Substack-style spring)
 * ─────────────────────────────────────────────────────────── */
.aiblog-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--wp--preset--color--accent);
  z-index: 9999;
  pointer-events: none;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.5));
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .aiblog-reading-progress { transition: none; }
}
/* Per-Category accent override (only on Single since body.cat-* is set there) */
body.cat-tutorials .aiblog-reading-progress  { background: var(--wp--preset--color--tut-tutorials); filter: drop-shadow(0 0 6px rgba(16,185,129,0.5)); }
body.cat-reviews .aiblog-reading-progress    { background: var(--wp--preset--color--tut-reviews);   filter: drop-shadow(0 0 6px rgba(245,158,11,0.5)); }
body.cat-vergleiche .aiblog-reading-progress { background: var(--wp--preset--color--tut-vergleiche); filter: drop-shadow(0 0 6px rgba(219,39,119,0.5)); }

/* ─── Sticky Share Rail (Desktop) + Floating Bottom Bar (Mobile) ─ */
.aiblog-share-rail {
  position: fixed;
  left: max(1rem, calc((100vw - 1320px) / 2 - 4.5rem));
  top: 30vh;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.aiblog-share-rail__label {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wp--preset--color--ink-500);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin: 0 auto 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--wp--preset--color--ink-300);
}
.aiblog-share-rail a,
.aiblog-share-rail button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--wp--preset--color--ink-300);
  background: var(--wp--preset--color--paper);
  color: var(--wp--preset--color--ink-700);
  text-decoration: none;
  cursor: pointer;
  transition: background 200ms cubic-bezier(0.22,1,0.36,1),
              color 200ms cubic-bezier(0.22,1,0.36,1),
              transform 220ms cubic-bezier(0.34,1.56,0.64,1),
              border-color 200ms,
              box-shadow 220ms;
}
.aiblog-share-rail a:hover,
.aiblog-share-rail button:hover,
.aiblog-share-rail a:focus-visible,
.aiblog-share-rail button:focus-visible {
  background: var(--wp--preset--color--ink-900);
  color: var(--wp--preset--color--paper);
  border-color: var(--wp--preset--color--ink-900);
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 18px rgba(10, 10, 15, 0.18);
  outline: none;
}
.aiblog-share-rail svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.aiblog-share-rail__copied {
  position: absolute;
  left: calc(100% + 0.75rem);
  white-space: nowrap;
  background: var(--wp--preset--color--ink-900);
  color: var(--wp--preset--color--paper);
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-4px);
  transition: opacity 160ms, transform 160ms;
}
.aiblog-share-rail__copied.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Mobile / narrow desktop variant — bottom floating bar */
@media (max-width: 1279px) {
  .aiblog-share-rail {
    position: fixed;
    left: 50%;
    top: auto;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(250, 250, 247, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid var(--wp--preset--color--ink-300);
    border-radius: 9999px;
    box-shadow: 0 8px 28px rgba(10, 10, 15, 0.18);
  }
  .aiblog-share-rail__label { display: none; }
  .aiblog-share-rail a,
  .aiblog-share-rail button {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
  }
}

/* ─── Drop-Cap Polish (overrides earlier rule) ──────────────── */
/* Drop-Cap nur für klassische Single-Posts — NICHT auf Pages und NICHT auf
   Elementor-Pages (`.entry-content` wäre dort auch der Wrapper). */
body.single-post .entry-content > p:first-of-type::first-letter {
  font-family: var(--wp--preset--font-family--fraunces);
  font-size: 5.5em;
  font-weight: 800;
  line-height: 0.82;
  float: left;
  margin: 0.05em 0.14em -0.05em 0;
  padding-right: 0.08em;
  color: var(--wp--preset--color--accent-strong);
  text-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
body.single-post.cat-tutorials  .entry-content > p:first-of-type::first-letter { color: var(--wp--preset--color--tut-tutorials); }
body.single-post.cat-reviews    .entry-content > p:first-of-type::first-letter { color: var(--wp--preset--color--tut-reviews); }
body.single-post.cat-vergleiche .entry-content > p:first-of-type::first-letter { color: var(--wp--preset--color--tut-vergleiche); }

/* ─── SVG Wordmark + Glyph in Masthead ──────────────────────── */
.aiblog-masthead__brand-svg {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--wp--preset--color--ink-900);
}
.aiblog-masthead__brand-svg .aiblog-wordmark {
  height: clamp(1.5rem, 2vw + 0.5rem, 2.25rem);
  width: auto;
  fill: currentColor;
}
.aiblog-masthead__brand-svg .aiblog-glyph {
  height: clamp(1.25rem, 1.5vw + 0.5rem, 1.75rem);
  width: auto;
  flex-shrink: 0;
}
.aiblog-masthead__brand-svg:hover .aiblog-glyph {
  transform: rotate(15deg);
  transition: transform 240ms ease;
}
.aiblog-masthead-footer__brand-svg {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--wp--preset--spacing--30);
}
.aiblog-masthead-footer__brand-svg .aiblog-wordmark {
  height: clamp(2.5rem, 5vw + 0.5rem, 4rem);
  width: auto;
  fill: var(--wp--preset--color--paper);
}
.aiblog-masthead-footer__brand-svg .aiblog-glyph {
  height: clamp(2rem, 4vw + 0.5rem, 3rem);
  width: auto;
}

/* ═════════════════════════════════════════════════════════════
 * v0.7 — Editorial Bento Hero (Front-Page Magazine Layout)
 * Inspiriert von NYT/Wired/Stratechery asymmetrischer Magazin-
 * Hierarchie (via Magic-MCP-Inspiration). 60/40 Split Desktop,
 * 1-spaltig Mobile.
 * ═════════════════════════════════════════════════════════════ */
.aiblog-bento {
  width: 100%;
  background: var(--wp--preset--color--paper);
  border-bottom: 1px solid var(--wp--preset--color--ink-300);
}
.aiblog-bento__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40) var(--wp--preset--spacing--80);
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: var(--wp--preset--spacing--60);
}
@media (max-width: 1023px) {
  .aiblog-bento__inner {
    grid-template-columns: 1fr;
    gap: var(--wp--preset--spacing--60);
    padding-top: var(--wp--preset--spacing--60);
    padding-bottom: var(--wp--preset--spacing--70);
  }
}

/* Lead story (left) */
.aiblog-bento__lead {
  display: flex;
  flex-direction: column;
}
.aiblog-bento__lead-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  gap: var(--wp--preset--spacing--40);
}
.aiblog-bento__lead-image {
  width: 100%;
  aspect-ratio: 21 / 9;
  background-size: cover;
  background-position: center;
  background-color: var(--wp--preset--color--ink-100);
  border-radius: 12px;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}
.aiblog-bento__lead-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,15,0) 0%, rgba(10,10,15,0.25) 100%);
  pointer-events: none;
}
.aiblog-bento__lead-image--fallback                   { background-image: linear-gradient(135deg, #0A0A0F 0%, #0E7490 100%); }
.aiblog-bento__lead-image--fallback.aiblog-bento__lead-image--tutorials  { background-image: linear-gradient(135deg, #0A0A0F 0%, #047857 100%); }
.aiblog-bento__lead-image--fallback.aiblog-bento__lead-image--reviews    { background-image: linear-gradient(135deg, #0A0A0F 0%, #B45309 100%); }
.aiblog-bento__lead-image--fallback.aiblog-bento__lead-image--vergleiche { background-image: linear-gradient(135deg, #0A0A0F 0%, #9D174D 100%); }
.aiblog-bento__lead-link:hover .aiblog-bento__lead-image { transform: scale(1.015); }

.aiblog-bento__lead-content { display: flex; flex-direction: column; gap: var(--wp--preset--spacing--30); }
.aiblog-bento__lead-title {
  font-family: var(--wp--preset--font-family--fraunces);
  font-size: clamp(1.875rem, 2.5vw + 0.5rem, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.05;
  color: var(--wp--preset--color--ink-900);
  margin: 0;
}
.aiblog-bento__lead-link:hover .aiblog-bento__lead-title { color: var(--wp--preset--color--accent-strong); }
.aiblog-bento__lead-excerpt {
  font-family: var(--wp--preset--font-family--fraunces);
  font-size: clamp(1rem, 0.5vw + 0.85rem, 1.25rem);
  line-height: 1.55;
  color: var(--wp--preset--color--ink-500);
  margin: 0;
  max-width: 56ch;
}
.aiblog-bento__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  align-items: center;
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wp--preset--color--ink-500);
}
.aiblog-bento__meta > [aria-hidden] { color: var(--wp--preset--color--ink-300); }

/* Category-Tag chip (shared between lead + cards) */
.aiblog-bento__cat {
  display: inline-block;
  padding: 0.3rem 0.625rem;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  width: max-content;
}
.aiblog-bento__cat--ki-news     { color: var(--wp--preset--color--accent-strong); }
.aiblog-bento__cat--tutorials   { color: var(--wp--preset--color--tut-tutorials); }
.aiblog-bento__cat--reviews     { color: var(--wp--preset--color--tut-reviews); }
.aiblog-bento__cat--vergleiche  { color: var(--wp--preset--color--tut-vergleiche); }

/* Right rail (3 cards stacked) */
.aiblog-bento__rail {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--30);
}
.aiblog-bento__rail-eyebrow {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--ink-900);
  margin: 0 0 var(--wp--preset--spacing--20);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--wp--preset--color--ink-900);
}
.aiblog-bento__card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--wp--preset--spacing--30);
  align-items: start;
  padding: var(--wp--preset--spacing--30) 0;
  border-bottom: 1px solid var(--wp--preset--color--ink-300);
  text-decoration: none;
  color: inherit;
  transition: transform 200ms cubic-bezier(0.22,1,0.36,1);
}
.aiblog-bento__card:last-child { border-bottom: 0; }
.aiblog-bento__card:hover { transform: translateX(2px); }
.aiblog-bento__card-img {
  width: 96px;
  height: 96px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  background-color: var(--wp--preset--color--ink-100);
}
.aiblog-bento__card-img--ki-news     { background-image: linear-gradient(135deg, #134E4A 0%, #0E7490 100%); }
.aiblog-bento__card-img--tutorials   { background-image: linear-gradient(135deg, #064E3B 0%, #047857 100%); }
.aiblog-bento__card-img--reviews     { background-image: linear-gradient(135deg, #78350F 0%, #B45309 100%); }
.aiblog-bento__card-img--vergleiche  { background-image: linear-gradient(135deg, #831843 0%, #9D174D 100%); }
.aiblog-bento__card-text {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.aiblog-bento__card-title {
  font-family: var(--wp--preset--font-family--fraunces);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--wp--preset--color--ink-900);
  margin: 0;
}
.aiblog-bento__card:hover .aiblog-bento__card-title { color: var(--wp--preset--color--accent-strong); }
