/* =========================================================================
   D.P. Media & AI Consulting — Noir Art Déco
   art-deco.css — ornamentale Details: Eckmarkierungen, Zierlinien,
   Themen-Filter-Pillen, Reveal-Animation. Ergänzt layout.css.
   ========================================================================= */

/* ---------- Header-Verglasung ---------- */
header.site-header {
  background: rgba(10,9,8,0.9);
  backdrop-filter: blur(10px);
}
.brand img {
  border: 1px solid var(--gold);
  box-shadow: 0 0 16px rgba(201,151,78,0.3);
  transition: box-shadow 0.4s ease;
}
.brand img:hover { box-shadow: 0 0 22px rgba(240,200,120,0.45); }

/* ---------- Hero-Glow ---------- */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(650px 340px at 14% 22%, rgba(201,151,78,0.16), transparent 72%),
    radial-gradient(550px 300px at 86% 78%, rgba(107,74,34,0.2), transparent 72%);
  pointer-events: none;
}

/* ---------- Eckmarkierungen ---------- */
.corner-frame { position: relative; }
.corner { position: absolute; width: 16px; height: 16px; border: 1px solid var(--gold); pointer-events: none; }
.corner.tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.corner.tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.corner.br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.workshop-box { box-shadow: 0 0 46px rgba(201,151,78,0.08) inset; }

/* ---------- Zierlinie / Raute unter Eyebrows ---------- */
.flourish { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px 0 0; }
.flourish::before, .flourish::after { content: ""; height: 1px; width: 60px; background: linear-gradient(90deg, transparent, var(--gold)); }
.flourish::after { background: linear-gradient(90deg, var(--gold), transparent); }
.flourish span { width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold); display: inline-block; }

/* ---------- Goldlinie (Separator) ---------- */
.gold-rule { max-width: 280px; margin: 36px auto 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent); opacity: 0.55; }

/* ---------- Analysen-Plakette ---------- */
.analysen-mark {
  border: 1px solid var(--bronze);
  padding: 26px 20px;
  background: linear-gradient(160deg, rgba(107,74,34,0.22), transparent);
  text-align: center; flex-shrink: 0;
  font-family: var(--font-display); font-size: 0.9rem; letter-spacing: 0.14em;
}
.analysen-mark small { display: block; font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.12em; color: var(--muted); margin-top: 8px; }

/* ---------- Themen-Filter (Kategorie-Pillen, für "Analysen und Meinungen") ---------- */
.themen-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 50px; }
.themen-filter a {
  display: inline-block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); border: 1px solid var(--line);
  padding: 9px 18px; transition: all 0.35s cubic-bezier(.4,0,.2,1);
}
.themen-filter a:hover { color: var(--gold); border-color: var(--gold); }
.themen-filter a.is-active { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.themen-filter a.is-all { border-color: var(--gold); color: var(--gold); }

/* ---------- Formular-Feedback ---------- */
.form-notice { padding: 12px 16px; border: 1px solid var(--line); font-size: 0.9rem; margin-bottom: 18px; }
.form-notice--success { border-color: var(--gold); color: var(--gold); }
.form-notice--error { border-color: var(--bronze); color: var(--gold-glow); }

/* ---------- Reveal-on-Scroll (ruhig, dramatisch statt düster) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.1s cubic-bezier(.16,1,.3,1), transform 1.1s cubic-bezier(.16,1,.3,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Motion Pack: Mikrointeraktionen ohne externe Bibliothek ---------- */
.motion-scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  z-index: 4;
  background: linear-gradient(90deg, var(--bronze), var(--gold-glow), var(--gold));
  box-shadow: 0 0 12px rgba(201,151,78,.55);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}
header.site-header { transition: box-shadow .45s ease, background-color .45s ease; }
header.site-header.is-scrolled { background: rgba(10,9,8,.95); box-shadow: 0 12px 40px rgba(0,0,0,.3); }

.motion-word {
  display: inline-block;
  opacity: 0;
  filter: blur(5px);
  transform: translate3d(0,.62em,0) rotateX(-16deg);
  transform-origin: center bottom;
  transition:
    opacity .78s cubic-bezier(.16,1,.3,1),
    filter .78s cubic-bezier(.16,1,.3,1),
    transform .92s cubic-bezier(.16,1,.3,1);
  transition-delay: calc(var(--word-index) * 42ms);
  will-change: opacity, filter, transform;
}
.motion-title.is-motion-visible .motion-word { opacity: 1; filter: blur(0); transform: translate3d(0,0,0) rotateX(0); }

.gold-rule.motion-line { transform: scaleX(0); transform-origin: center; transition: transform 1.25s cubic-bezier(.16,1,.3,1); }
.gold-rule.motion-line.is-motion-visible { transform: scaleX(1); }
.flourish.motion-line::before,
.flourish.motion-line::after { transform: scaleX(0); transition: transform 1.05s cubic-bezier(.16,1,.3,1); }
.flourish.motion-line::before { transform-origin: right center; }
.flourish.motion-line::after { transform-origin: left center; }
.flourish.motion-line.is-motion-visible::before,
.flourish.motion-line.is-motion-visible::after { transform: scaleX(1); }
.flourish.motion-line span { opacity: 0; transition: opacity .5s ease .5s, box-shadow .7s ease .5s; }
.flourish.motion-line.is-motion-visible span { opacity: 1; box-shadow: 0 0 16px rgba(240,200,120,.55); }
.category-post-group-head.motion-line { position: relative; border-bottom-color: transparent; }
.category-post-group-head.motion-line::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--line) 72%, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s cubic-bezier(.16,1,.3,1);
}
.category-post-group-head.motion-line.is-motion-visible::after { transform: scaleX(1); }

.motion-cursor-halo {
  --halo-scale: 1;
  position: fixed;
  top: -135px;
  left: -135px;
  width: 270px;
  height: 270px;
  z-index: 3;
  border-radius: 50%;
  pointer-events: none;
  opacity: .28;
  background: radial-gradient(circle, rgba(240,200,120,.18) 0, rgba(201,151,78,.08) 32%, transparent 70%);
  mix-blend-mode: screen;
  filter: blur(4px);
  transition: opacity .35s ease, filter .35s ease, --halo-scale .35s ease;
  will-change: transform;
}
.motion-cursor-halo.is-active { --halo-scale: .62; opacity: .58; filter: blur(1px); }
.motion-cursor-halo.is-hidden { opacity: 0; }

.motion-enabled .motion-tilt {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --motion-lift: 0px;
  transform: perspective(1100px) translate3d(0,var(--motion-lift),0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.16,1,.3,1), border-color .35s ease, background-color .5s ease;
  will-change: transform;
}
.motion-enabled .motion-tilt:hover { --motion-lift: -4px; }
.motion-enabled .motion-tilt > * { transform: translateZ(0); }

.motion-magnetic {
  --magnetic-x: 0px;
  --magnetic-y: 0px;
  transform: translate3d(var(--magnetic-x),var(--magnetic-y),0);
  transition: transform .38s cubic-bezier(.16,1,.3,1), color .35s ease, border-color .35s ease, background-color .35s ease, box-shadow .35s ease;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  body::before { animation: none !important; transform: scale(1.06) !important; }
  .motion-word { opacity: 1 !important; filter: none !important; transform: none !important; transition: none !important; }
  .motion-line,
  .motion-line::before,
  .motion-line::after,
  .motion-cursor-halo,
  .motion-scroll-progress { display: none !important; }
}

@media (hover: none), (pointer: coarse), (max-width: 899px) {
  .motion-cursor-halo { display: none; }
  .motion-tilt,
  .motion-magnetic { transform: none !important; }
}
