/**
 * Elementor-Kompatibilität — mappt das Markup der Theme-Builder-Widgets
 * (theme-post-*) auf die Design-System-Absicht, OHNE den geteilten
 * design-system.css-SSOT zu verschmutzen. Lädt NACH design-system.css.
 *
 * Hintergrund: Elementor setzt die eigenen CSS-Klassen (_css_classes) auf den
 * .elementor-element-Wrapper, nicht auf das innere Tag. Darum greifen Regeln
 * wie `article h1.title` oder `.featured img` (height:100%) nicht direkt durch.
 */

/* Beitrags-Titel: Design-Größe/-Schnitt auf das vom Post-Title-Widget
   gerenderte <h1> (Klasse `title` liegt am Wrapper). Spiegelt `article h1.title`. */
article .elementor-widget-theme-post-title.title .elementor-heading-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(34px, 4.4vw, 50px);
  line-height: 1.04;
  letter-spacing: -.015em;
  margin: 0 0 18px;
}

/* Beitragsbild: das 16/8-Banner aus `.featured` durch die Elementor-Wrapper
   bis zum <img> durchreichen (sonst kollabiert height:100% an .widget-container). */
.featured.elementor-widget-theme-post-featured-image .elementor-widget-container {
  height: 100%;
}
.featured.elementor-widget-theme-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── art-grid: 2-Spalten-Layout (Artikel + 320px-Sidebar) ──
   Elementor gibt _css_classes an Containern nicht zuverlässig aus, darum
   strukturell: der Container, der DIREKT das <article> (+ Sidebar) enthält. */
.e-con:has(> article.e-con) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 54px;
  align-items: start;
}
/* Sidebar-Spalte (Shortcode-Widget) klebt mit (wie .sidebar im Design). */
.e-con:has(> article.e-con) > .elementor-widget-shortcode {
  align-self: start;
  position: sticky;
  top: 90px;
}
@media (max-width: 980px) {
  .e-con:has(> article.e-con) { grid-template-columns: 1fr; gap: 42px; }
  .e-con:has(> article.e-con) > .elementor-widget-shortcode { position: static; }
}

/* ── Excerpt: Anrisstext-Look auf das Post-Excerpt-Widget ── */
.excerpt.elementor-widget-theme-post-excerpt .elementor-widget-container {
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-2);
  font-weight: 500;
  max-width: 62ch;
}

/* ── Inhaltsverzeichnis: .toc-Look auf das Table-of-Contents-Widget ── */
.toc .elementor-widget-container {
  background: var(--accent-soft);
  border-radius: 14px;
  padding: 22px 26px;
}
.toc .elementor-toc__header-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.toc .elementor-toc__list-item-text {
  font-weight: 500;
  color: var(--ink-2);
  font-size: 16px;
}
.toc .elementor-toc__list-item-text:hover { color: var(--anchor); }

/* ── Autoren-Box: .author-Look auf das Author-Box-Widget ── */
.author .elementor-author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg);
  border-radius: 18px;
  padding: 26px 28px;
  margin: 48px 0 0;
}
.author .elementor-author-box__avatar {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0;
}
.author .elementor-author-box__avatar img { width: 100%; height: 100%; object-fit: cover; }
.author .elementor-author-box__name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  margin: 0 0 8px;
}
.author .elementor-author-box__bio {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  max-width: 54ch;
}

/* ════════════════════════════════════════════════════════════════════════
   HEADER / FOOTER — Elementor-Theme-Builder-Templates auf den Design-Look.
   Gemappt über die Location-Wrapper, da Container kein _css_classes ausgeben.
   ════════════════════════════════════════════════════════════════════════ */

/* ── Header: sticky, weiß, Trennlinie ── */
.elementor-location-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
/* Logo (Site-Title-Widget) */
.elementor-location-header .elementor-widget-theme-site-title a {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(18px, 1.7vw, 23px);
  color: #000;
  text-decoration: none;
}
/* Nav-Links */
.elementor-location-header .elementor-nav-menu .elementor-item {
  font-size: 16.5px;
  font-weight: 600;
  color: #000;
}
.elementor-location-header .elementor-nav-menu .elementor-item:hover { color: var(--anchor); }
/* Such-Pille */
.elementor-location-header .elementor-search-form__container {
  background: #f0eee9;
  border-radius: 999px;
}
.elementor-location-header .elementor-search-form__input { background: transparent; }
@media (max-width: 1240px) {
  .elementor-location-header .elementor-widget-search-form { display: none; }
}

/* ── Footer: dunkler Block (anchor-900), 4-Spalten-Grid ── */
.elementor-location-footer > footer { background: var(--anchor-900); color: #fff; }
/* ftop = erster Container im <footer> */
.elementor-location-footer > footer > .e-con:first-child {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 860px) {
  .elementor-location-footer > footer > .e-con:first-child { grid-template-columns: 1fr 1fr; gap: 34px; }
}
/* fbot = letzter Container → Trennlinie oben */
.elementor-location-footer > footer > .e-con:last-child { border-top: 1px solid rgba(255,255,255,.14); }
/* Marken-Logo */
.elementor-location-footer .elementor-widget-theme-site-title a {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
}
/* Spalten-Titel */
.elementor-location-footer .elementor-heading-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin: 0 0 16px;
}
/* Spalten-Links */
.elementor-location-footer .elementor-widget-text-editor a {
  display: block;
  font-size: 16px;
  color: rgba(255,255,255,.86);
  padding: 7px 0;
  font-weight: 500;
  text-decoration: none;
}
.elementor-location-footer .elementor-widget-text-editor a:hover { color: #fff; }
/* Tagline + Copyright */
.elementor-location-footer .elementor-widget-text-editor { color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.55; }
