/* ============================================================
   CALANDI — Übersichtsseite Transaktionen (/transaktionen/)
   includes/transaktion-uebersicht.php, page-transaktionen.php
   Karten: transaktion-karten.css (wird vorher geladen).
   CI v1.3: Textstile und Buttons aus brand/calandi-brand.css, eigene Tokens unter .cl-txu.
   ============================================================ */

.cl-txu {
  --u-c-160: #011638;
  --u-c-150: #011c46;
  --u-c-130: #012761;
  --u-c-110: #01327d;
  --u-c-80:  #3460a2;
  --u-c-50:  #7f9bc4;
  --u-c-40:  #99afd1;
  --u-c-20:  #ccd7e8;
  --u-c-10:  #e6ecf4;
  --u-gold:       #a89d7a;
  --u-gold-light: #c8be9e;
  --u-font: 'Arimo', Helvetica, Arial, 'Lucida Grande', sans-serif;
  font-family: var(--u-font);
  color: var(--u-c-130);
}
.cl-txu *, .cl-txu *::before, .cl-txu *::after { box-sizing: border-box; }

/* ── Hero: Bild Düsseldorf, Overlay C-160, Kennzahlen unten mit Linie über die volle Breite ──
   .c-hero bleibt als Klasse, damit die Navigation den dunklen Zustand erkennt (body:has(.c-hero)).
   Die Regeln des Haupttheme für .c-hero werden hier überschrieben. */
.cl-txu .c-hero.cl-txu-hero {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  min-height: 0; max-height: none; padding: 0;
  text-align: center; align-content: normal; color: #fff;
}
.cl-txu .c-hero.cl-txu-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; transform: none;
  background: url('img/calandi-hero-duesseldorf-1920.webp') center / cover no-repeat;
}
.cl-txu .c-hero.cl-txu-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(1,22,56,.92) 0%, rgba(1,22,56,.72) 42%, rgba(1,22,56,.78) 70%, rgba(1,22,56,.96) 100%);
  -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px);
}
@media (max-width: 960px) {
  .cl-txu .c-hero.cl-txu-hero::before { background-image: url('img/calandi-hero-duesseldorf-960.webp'); }
}
.cl-txu-hero__inhalt { padding: calc(var(--header-h, 75px) + 96px) 0 80px; }
/* H1 wie CI */
/* Eyebrow wie CI .eyebrow-light, Gold hell */
.cl-txu-hero__eyebrow { margin: 0 0 16px; font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: 2px; text-transform: uppercase; color: var(--u-gold-light); }
.cl-txu-hero__title {
  margin: 0 auto; max-width: 1070px;
  font-size: clamp(2.5rem, 1.92737rem + .893855vw, 3rem); font-weight: 700; line-height: 1.1; color: #fff;
}
/* Absatz wie CI .p-large */
.cl-txu-hero__lead { margin: 20px auto 0; max-width: 680px; font-size: 18px; line-height: 1.5; color: #fff; }
.cl-txu-hero__kennzahlen { border-top: 1px solid rgba(255,255,255,.1); }
/* Eigene Klasse ohne .c-container: das Haupttheme setzt .c-container { display: block } und lädt danach. */
.cl-txu .cl-txu-kennzahlen { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1200px; margin: 0 auto; padding: 0; }
.cl-txu-kennzahl { display: flex; flex-direction: column-reverse; align-items: center; gap: 8px; padding: 28px 16px 32px; }
.cl-txu-kennzahl + .cl-txu-kennzahl { border-left: 1px solid rgba(255,255,255,.1); }
/* Zahl wie h3, Label wie .eyebrow in C-20 */
.cl-txu-kennzahl dd { margin: 0; font-size: clamp(1.75rem, 1.46369rem + .446927vw, 2rem); font-weight: 700; line-height: 1.2; color: var(--u-gold-light); font-variant-numeric: tabular-nums; }
.cl-txu-kennzahl dt { margin: 0; font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: 2px; text-transform: uppercase; color: var(--u-c-20); }
@media (max-width: 1024px) {
  .cl-txu-hero__title { font-size: clamp(2rem, .5rem + 3.125vw, 2.5rem); }
  .cl-txu-kennzahl dd { font-size: clamp(1.5rem, .75rem + 1.5625vw, 1.75rem); }
  .cl-txu-hero__inhalt { padding: calc(var(--header-h, 75px) + 64px) 0 56px; }
}
@media (max-width: 560px) {
  .cl-txu-kennzahl { padding: 20px 8px 22px; gap: 6px; }
  .cl-txu-kennzahl dt { font-size: 10.5px; letter-spacing: 1.4px; }
}

/* ── Liste mit Filter ─────────────────────────────────────────────── */
.cl-txu__liste { padding: 72px 0 112px; background: #fff; }
.cl-txu__filter {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px;
  padding-bottom: 28px; margin: 0 0 40px; border-bottom: 1px solid var(--u-c-10);
}
.cl-txu__filter[hidden] { display: none; }
.cl-txu__felder { display: flex; flex-wrap: wrap; gap: 16px; flex: 1 1 640px; }
.cl-txu__feld { display: flex; flex-direction: column; gap: 8px; flex: 1 1 200px; max-width: 280px; }
/* Label wie .eyebrow, Farbe C-110 (Nebentext) */
.cl-txu__label { font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: 2px; text-transform: uppercase; color: var(--u-c-110); }
.cl-txu__select { position: relative; }
.cl-txu__select select {
  -webkit-appearance: none; appearance: none; width: 100%; height: 48px; margin: 0;
  padding: 0 44px 0 16px; border: 1px solid var(--u-c-40); border-radius: 4px; background: #fff;
  font: 500 15px/1.35 var(--u-font); letter-spacing: .3px; color: var(--u-c-150); cursor: pointer;
}
.cl-txu__select select.is-set { border-color: var(--u-c-150); }
.cl-txu__select select:focus-visible { outline: 2px solid var(--u-c-80); outline-offset: 3px; }
.cl-txu__select svg {
  position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; pointer-events: none;
  fill: none; stroke: var(--u-c-150); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
@media (hover: hover) and (pointer: fine) {
  .cl-txu__select select { transition: border-color .3s ease; }
  .cl-txu__select select:hover { border-color: var(--u-c-160); }
}
.cl-txu__status { display: flex; align-items: center; gap: 20px; min-height: 48px; }
.cl-txu__anzahl { margin: 0; font-size: 16px; line-height: 1.5; color: var(--u-c-130); white-space: nowrap; }
.cl-txu__reset {
  margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
  font: 500 15px/1.35 var(--u-font); color: var(--u-c-150);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--u-c-40);
}
.cl-txu__reset[hidden] { display: none; }
.cl-txu__reset:focus-visible { outline: 2px solid var(--u-c-80); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .cl-txu__reset:hover { text-decoration-color: var(--u-c-150); } }

/* Abstand oben kommt von der Filterleiste, nicht vom Raster */
.cl-txu .cl-txk.cl-txu__ergebnis { margin-top: 0; }
.cl-txu .cl-txk__card[hidden] { display: none; }
/* Nach dem Filtern ohne Einblend-Animation (transaktion-uebersicht.js setzt .is-instant) */
.cl-txu .cl-txk__card.is-instant, .cl-txu .cl-txk__card.is-instant * { transition: none !important; }

.cl-txu__leer { padding: 56px 0 8px; text-align: center; }
.cl-txu__leer[hidden] { display: none; }
/* wie h5 */
.cl-txu__leer-titel { margin: 0 0 20px; font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--u-c-150); }

@media (max-width: 699px) {
  .cl-txu__liste { padding: 48px 0 80px; }
  .cl-txu__felder { flex-direction: column; flex-basis: 100%; }
  .cl-txu__feld { max-width: none; flex-basis: auto; }
  .cl-txu__status { width: 100%; justify-content: space-between; min-height: 0; }
}

/* ── Abschluss ───────────────────────────────────────────────────── */
.cl-txu__cta { padding: 96px 0 112px; background: var(--u-c-10); text-align: center; }
/* wie h2 */
.cl-txu__cta-titel { margin: 0 0 16px; font-size: clamp(2rem, 1.42737rem + .893855vw, 2.5rem); font-weight: 700; line-height: 1.2; color: var(--u-c-150); }
.cl-txu__cta-text { margin: 0 auto 32px; max-width: 560px; font-size: 18px; line-height: 1.5; color: var(--u-c-130); }
@media (max-width: 1024px) { .cl-txu__cta-titel { font-size: clamp(1.75rem, 1rem + 1.5625vw, 2rem); } }
@media (max-width: 480px) { .cl-txu__cta { padding: 72px 0 80px; } }

/* ── Buttons nach CI v1.3 (nur außerhalb der Karten) ───────────────── */
.cl-txu__leer .btn, .cl-txu__cta .btn {
  --btn-gap: 12px; --btn-icon: 18px; --btn-shift: calc((var(--btn-gap) + var(--btn-icon)) / 2);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--btn-gap);
  max-width: 100%; padding: 16px 28px; border: 1px solid transparent; border-radius: 4px;
  font: 500 15px/1.35 var(--u-font); letter-spacing: .3px; text-decoration: none; cursor: pointer;
}
.cl-txu .btn .t { min-width: 0; text-align: center; }
.cl-txu__cta .btn .ar {
  width: var(--btn-icon); height: var(--btn-icon); flex: none;
  fill: none; stroke: var(--u-gold-light); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.cl-txu__cta .btn-primary { background: var(--u-c-150); color: #fff; }
.cl-txu__leer .btn-outline { background: transparent; color: var(--u-c-150); border-color: var(--u-c-40); --btn-shift: 0px; }
.cl-txu__leer .btn-sm { padding: 11px 20px; font-size: 14px; }
.cl-txu__leer .btn:focus-visible, .cl-txu__cta .btn:focus-visible { outline: 2px solid var(--u-c-80); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .cl-txu__leer .btn, .cl-txu__cta .btn { transition: background .4s cubic-bezier(.2,.7,.2,1), border-color .3s ease; }
  .cl-txu__cta .btn .t { transform: translateX(var(--btn-shift)); transition: transform .45s cubic-bezier(.2,.7,.2,1); }
  .cl-txu__cta .btn .ar { opacity: 0; transform: translateX(-10px); transition: opacity .3s cubic-bezier(.2,.7,.2,1), transform .45s cubic-bezier(.2,.7,.2,1); }
  .cl-txu__cta .btn:hover .t { transform: none; }
  .cl-txu__cta .btn:hover .ar { opacity: 1; transform: none; }
  .cl-txu__cta .btn-primary:hover { background: var(--u-c-160); }
  .cl-txu__leer .btn-outline:hover { border-color: var(--u-c-160); }
}
@media (max-width: 480px) { .cl-txu__cta .btn { width: 100%; font-size: 13px; } }
@media (prefers-reduced-motion: reduce) {
  .cl-txu .btn, .cl-txu .btn *, .cl-txu__select select { transition: none !important; }
}
