/* Kacheln von Wirtschaft & Events – gemeinsam für die Website (body.wue-vorschau) und die Vorschau
   in der Eingabemaske (wp-admin, Wrapper .wue-vorschau). Einzige Quelle der Kachel-Gestaltung. */
@font-face { font-family: "Geist"; src: url(schrift/geist.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(schrift/geistmono.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
.wue-vorschau {
  --r: 8px; --acc: #F5B0A3; --onacc: #3D0F08; --ink: #0B0B0B; --paper: #FFFFFF; --rose: #FCE4E7; --night: #1C1C1C;
  --hlf: Geist, system-ui, sans-serif; --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.76,0,.24,1);
}
:where(.wue-vorschau) .t, :where(.wue-vorschau .t) *, :where(.wue-vorschau .t) *::before, :where(.wue-vorschau .t) *::after { box-sizing: border-box; }
:where(.wue-vorschau) .t { font-family: var(--hlf); font-size: 15px; line-height: 1.4; letter-spacing: normal; text-align: left; -webkit-font-smoothing: antialiased; }
.wue-vorschau .teaser { font-size: 15px; color: inherit; padding: 0; }
.wue-vorschau .t h3, .wue-vorschau .t p, .wue-vorschau .t a { color: inherit; }
:where(.wue-vorschau .t) a, :where(.wue-vorschau .t) a:hover, :where(.wue-vorschau .t) a:focus { color: inherit; text-decoration: none; box-shadow: none; }
:where(.wue-vorschau .t) button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; min-height: 0; line-height: normal; }
.wue-vorschau .t .fb { padding: 0 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .01em; line-height: 1; }
.wue-vorschau .mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: .01em; }
.wue-vorschau .hl { font-family: var(--hlf); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.wue-vorschau .t h3.hl { line-height: 1; }
.wue-vorschau .t .teaser { line-height: 1.32; }
/* Kennzeichen (Rahmen) */
.wue-vorschau .kz { display: inline-flex; align-items: center; height: 18px; padding: 0 5px; margin-right: 6px; border-radius: calc(var(--r) / 2); font-family: var(--mono); font-weight: 600; font-size: 10.5px; vertical-align: 1px; box-shadow: inset 0 0 0 1px currentColor; }
.wue-vorschau .kz i { font-style: normal; }
.wue-vorschau .kz:has(> i:empty) { display: none; }
:where(.wue-vorschau) .t { position: relative; border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
:where(.wue-vorschau) .t { box-shadow: 0 1px 1px rgba(0,0,0,.14), 0 8px 16px -6px rgba(0,0,0,.32), 0 26px 44px -22px rgba(0,0,0,.5); }
.wue-vorschau .hd { position: relative; flex: 0 0 auto; height: 36px; margin: 0 12px; overflow: hidden; z-index: 3; }
.wue-vorschau .hd::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ln); }
.wue-vorschau .hd::before { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; transform: scaleX(0); transform-origin: left; background: var(--ac); z-index: 1; transition: transform .55s var(--ease); }
.wue-vorschau .hdin { transition: transform .4s var(--ease); }
.wue-vorschau .hda, .wue-vorschau .hdb { height: 36px; display: flex; justify-content: space-between; align-items: center; gap: 8px; white-space: nowrap; }
.wue-vorschau .hda > span, .wue-vorschau .hdb > span { overflow: hidden; white-space: nowrap; }
.wue-vorschau .hda > span:first-child { display: flex; align-items: center; }
.wue-vorschau .kurz .bzn { display: none; }
.wue-vorschau .hdb.kurz > span:last-child { display: none; }
.wue-vorschau .ft.kurz > span:first-child { display: none; }
/* reicht der Platz nicht für die Quelle, bleibt wenigstens die Lesezeit stehen – nie eine leere Zeile */
.wue-vorschau .hdb.kurz2 > span:first-child { display: none; }
.wue-vorschau .hdb.kurz2 > span:last-child { display: inline; }
.wue-vorschau .hda.kurz2 > span:first-child:has(.kz), .wue-vorschau .hda.kurz2 > span:last-child:not(.rp) { display: none; }
.wue-vorschau .t:hover .hdin, .wue-vorschau .t:focus-within .hdin, .wue-vorschau .t.an .hdin { transform: translateY(-36px); }
.wue-vorschau .t:hover .hd::before, .wue-vorschau .t:focus-within .hd::before, .wue-vorschau .t.an .hd::before { transform: none; }
.wue-vorschau .ft { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; white-space: nowrap; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 6px; transform: translateY(101%); transition: transform .4s var(--ease), box-shadow .4s ease; z-index: 4; }
.wue-vorschau .ft > span { display: flex; align-items: center; white-space: nowrap; }
.wue-vorschau .t:hover .ft, .wue-vorschau .t:focus-within .ft, .wue-vorschau .t.an .ft { transform: none; }
.wue-vorschau .t:hover .ft, .wue-vorschau .t:focus-within .ft, .wue-vorschau .t.an .ft { box-shadow: 0 -12px 24px -12px rgba(0,0,0,.5); }
.wue-vorschau .fb { height: 32px; padding: 0 8px; border-radius: calc(var(--r) / 2); font-family: var(--mono); font-size: 11.5px; white-space: nowrap; display: inline-flex; align-items: center; }
.wue-vorschau .fb:hover { background: rgba(0,0,0,.12); }
.wue-vorschau .fb.fr { font-weight: 600; }
.wue-vorschau .cap { transition: transform .4s var(--ease); }
.wue-vorschau .t:hover .cap, .wue-vorschau .t:focus-within .cap, .wue-vorschau .t.an .cap { transform: translateY(-40px); }

.wue-vorschau .fit h3, .wue-vorschau .fit .sz { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.wue-vorschau .t h3.hl { margin: 0; font-size: calc(var(--hs, 23px) * var(--k, 1)); }
.wue-vorschau .stretch::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.wue-vorschau .stretch:focus-visible { outline: none; }
.wue-vorschau .stretch:focus-visible::after { outline: 3px solid currentColor; outline-offset: -3px; border-radius: var(--r); }
.wue-vorschau .rp { padding: 3px 9px; border-radius: 999px; line-height: 1.25; }
.wue-vorschau .pv { margin-right: 5px; vertical-align: -1px; }
.wue-vorschau .lv { font-weight: 700; margin-right: 6px; letter-spacing: .04em; }

/* Textkachel in Rubrikfarbe */
.wue-vorschau .tx { background: var(--s); color: var(--i); --ln: rgba(0,0,0,.16); --ac: var(--i); }
.wue-vorschau .tx .rp, .wue-vorschau .tx .ft, .wue-vorschau .tx .wc { background: var(--m); color: var(--i); }
.wue-vorschau .bd { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-between; padding: 10px 12px 12px; min-height: 0; }
.wue-vorschau .tx .fit { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.wue-vorschau .teaser { margin: 8px 0 0; line-height: 1.32; }
.wue-vorschau .zr { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 6px; }
.wue-vorschau .neu { box-shadow: inset 0 0 0 1px currentColor; padding: 3px 7px; border-radius: calc(var(--r) / 2); }
.wue-vorschau .ev { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.wue-vorschau .wc { padding: 4px 7px; border-radius: calc(var(--r) / 2); }
.wue-vorschau .eo { min-width: 0; overflow-wrap: anywhere; }

/* Bildkachel: Text über weichem Unschärfe-Verlauf */
.wue-vorschau .img { color: #fff; background: var(--night); --ln: rgba(255,255,255,.35); --ac: var(--m); }
.wue-vorschau .img .rp, .wue-vorschau .img .ft { background: var(--s); color: var(--i); }
.wue-vorschau .img .wc { background: var(--m); color: var(--i); }
.wue-vorschau .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.wue-vorschau .img:hover .ph { transform: scale(1.06); }
.wue-vorschau .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,6,4,.9) 0%, rgba(26,6,4,.5) 38%, rgba(26,6,4,0) 64%), linear-gradient(to bottom, rgba(26,6,4,.55) 0%, rgba(26,6,4,0) 22%); }
.wue-vorschau .img::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 64px; z-index: 1; background: linear-gradient(rgba(12,8,7,.42), rgba(12,8,7,0)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); pointer-events: none; }
.wue-vorschau .cap { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 40px 14px 32px; }
.wue-vorschau .img .fitin { position: relative; isolation: isolate; }
.wue-vorschau .img .fitin::before { content: ""; position: absolute; z-index: -1; left: -14px; right: -14px; top: -80px; bottom: -32px; background: linear-gradient(to bottom, rgba(12,8,7,0), rgba(12,8,7,.6) 80px); -webkit-backdrop-filter: blur(18px) saturate(1.15); backdrop-filter: blur(18px) saturate(1.15); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 80px); mask-image: linear-gradient(to bottom, transparent, #000 80px); pointer-events: none; }
.wue-vorschau .badge { position: absolute; right: 8px; bottom: 8px; z-index: 3; font-family: var(--mono); font-size: 10px; line-height: 1; padding: 3px 5px; border-radius: calc(var(--r) / 2); background: rgba(20,8,6,.55); color: #fff; transition: opacity .3s; max-width: calc(100% - 16px); overflow: hidden; white-space: nowrap; }
.wue-vorschau .img:hover .badge, .wue-vorschau .img:focus-within .badge, .wue-vorschau .img.an .badge { opacity: 0; }
/* Am Handy (28.11.): wie am Desktop eingefahren; die Kachel unter dem Daumen fährt aus (Klasse .an aus we.js).
   Schatten ohne Übergang, das spart Malarbeit beim Scrollen. */
@media (hover: none) {
  .wue-vorschau .ft { transition: transform .35s var(--ease); }
  .wue-vorschau .hdin, .wue-vorschau .cap { transition-duration: .35s; }
}

@media (prefers-reduced-motion: reduce) {
  .wue-vorschau .hdin, .wue-vorschau .ft, .wue-vorschau .cap, .wue-vorschau .hd::before, .wue-vorschau .ph, .wue-vorschau .badge { transition: none !important; }
  .wue-vorschau .img:hover .ph { transform: none; }
}

/* Events der Woche (1×3): Ort klein unter dem Titel */
.wue-vorschau .liste .ort { display: block; margin-top: 4px; opacity: .75; }

/* Ganze Wörter bevorzugen: die Einpassung schaltet die Trennung nur ein, wenn Verkleinern nicht reicht */
.wue-vorschau .fit.nohy h3, .wue-vorschau .fit.nohy .sz { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; }

/* Info-Kasten ohne zweite Kopfzeile: Kopf bleibt stehen */
.wue-vorschau .hd.fest .hdin { transform: none !important; }
