/* =========================================================
   Title-Layout-Presets — Styles (Paket 3)
   =========================================================

   Zugrundeliegendes Farbsystem: die CSS-Variablen --title-color-<slug>
   werden in Paket 1 an :root angehängt (functions.php via
   creovate_build_title_color_css_vars). Dieser Stylesheet konsumiert
   sie über die Klassen .tile-text--color-<slug> und
   .tile-text--bg-<slug>.

   Anwendung pro Preset siehe split-text-top.php bzw. centered-plain.php
   (Prompts 3.2+3.3).
   ========================================================= */

/* --- Schriftfarben --- */

.tile-text--color-schwarz    { color: var(--title-color-schwarz); }
.tile-text--color-weiss      { color: var(--title-color-weiss); }
.tile-text--color-limone     { color: var(--title-color-limone); }
.tile-text--color-jade       { color: var(--title-color-jade); }
.tile-text--color-sand       { color: var(--title-color-sand); }
.tile-text--color-terracotta { color: var(--title-color-terracotta); }
.tile-text--color-olive      { color: var(--title-color-olive); }
.tile-text--color-indigo     { color: var(--title-color-indigo); }
.tile-text--color-lavendel   { color: var(--title-color-lavendel); }
.tile-text--color-kobalt     { color: var(--title-color-kobalt); }

/* --- Text-Hintergrundfarben --- */

.tile-text--bg-schwarz       { background-color: var(--title-color-schwarz); }
.tile-text--bg-weiss         { background-color: var(--title-color-weiss); }
.tile-text--bg-limone        { background-color: var(--title-color-limone); }
.tile-text--bg-jade          { background-color: var(--title-color-jade); }
.tile-text--bg-sand          { background-color: var(--title-color-sand); }
.tile-text--bg-terracotta    { background-color: var(--title-color-terracotta); }
.tile-text--bg-olive         { background-color: var(--title-color-olive); }
.tile-text--bg-indigo        { background-color: var(--title-color-indigo); }
.tile-text--bg-lavendel      { background-color: var(--title-color-lavendel); }
.tile-text--bg-kobalt        { background-color: var(--title-color-kobalt); }

/* --- Layout: centered-plain --- */

.tile-centered-plain {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1em;
  box-sizing: border-box;
  pointer-events: none;
  text-align: center;
}

.tile-centered-plain .tile-title {
  margin: 0;
  max-width: 100%;
  text-align: center;
}

/* --- Layout: split-text-top --- */

.tile.has-title-layout-top {
  display: flex;
  flex-direction: column;
}

.tile.has-title-layout-top .tile-visual {
  order: 2;
}

.tile-split-text-top {
  order: 1;
  padding: 1em;
  box-sizing: border-box;
}

.tile-split-text-top .tile-pretitle {
  margin-bottom: 0.5em;
  font-size: 0.75em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* Badge-Pill-Styles werden im Pretitle-Kontext neutralisiert.
   !important nötig, weil .tile-topic einen Inline-background trägt. */
.tile-split-text-top .tile-pretitle .tile-topic {
  background: none !important;
  padding: 0;
  border: none;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.tile-split-text-top .tile-title {
  margin: 0 0 0.5em 0;
}

.tile-split-text-top .tile-summary {
  margin: 0;
}
