/* Artikel-Layout (gemeinsame Basis der Artikelseiten, seitenweise ausgeliefert) */
.art { padding: 56px 0 96px; }
.art-grid {
  display: grid;
  grid-template-columns: minmax(0, 720px) 250px;
  gap: 84px;
  justify-content: center;
  align-items: start;
}
.art-body { min-width: 0; }
.art-body > p { font-size: 18px; line-height: 1.78; color: #3F515B; margin: 0 0 18px; }
.art-body > p b { color: var(--ink); }
.art-body > p a { color: var(--petrol); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(237, 152, 42, 0.6); text-underline-offset: 3px; }
.art-body > p.art-lead { font-size: 21px; line-height: 1.62; color: var(--ink); }
.art-body h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.14;
  letter-spacing: -0.028em;
  margin: 72px 0 20px;
  scroll-margin-top: 104px;
}
.art-body h2 .k {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 12px;
}
.art-body h2 .k::before { content: "// "; opacity: 0.7; }
.art-fig-note { font-size: 12.5px; color: var(--gray); margin: 10px 2px 0; }
.art-src { font-size: 13px; color: var(--gray); margin: 12px 2px 0; }
.art-src a { color: var(--petrol); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Das Wichtigste in Kuerze */
.art-tldr {
  position: relative;
  overflow: hidden;
  margin: 34px 0 10px;
  padding: 30px 32px 32px;
  border-radius: 20px;
  color: #E6EEF2;
  background: radial-gradient(520px 260px at 100% 0%, rgba(237, 152, 42, 0.24), transparent 62%), linear-gradient(155deg, #16354A, var(--ink) 72%);
  box-shadow: var(--shadow-card);
}
.art-tldr .mono-label, .art-tldr .mono-label::before { color: var(--orange-soft); }
.art-tldr ul { list-style: none; display: grid; gap: 14px; margin: 18px 0 0; padding: 0; }
.art-tldr li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; line-height: 1.55; color: rgba(230, 238, 242, 0.93); }
.art-tldr li::before {
  content: "";
  flex: none;
  width: 22px; height: 22px;
  margin-top: 3px;
  border-radius: 7px;
  background: rgba(237, 152, 42, 0.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.2 6.4l2.5 2.4 5-5.4' fill='none' stroke='%23F5C26B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Kernsatz */
.art-quote { position: relative; margin: 48px 0; padding: 4px 0 4px 30px; }
.art-quote::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--orange), var(--orange-soft));
  transform-origin: top;
}
.art-quote p {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(22px, 2.7vw, 30px);
  line-height: 1.32;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--ink);
}
.art-quote .mono-label { margin-bottom: 14px; font-size: 11px; }

/* Karten */
.art-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: var(--shadow-card);
}
.art-card h3 { font-size: 19px; margin: 0 0 10px; }
.art-card p { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--gray); }
.art-photo { margin: 36px 0 8px; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-card); position: relative; }
.art-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.9s var(--ease-out); }
.art-photo:hover img { transform: scale(1.03); }
.art-photo figcaption {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  padding: 10px 14px; border-radius: 10px;
  background: rgba(10, 26, 34, 0.72);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: rgba(230, 238, 242, 0.8); font-size: 13px;
}

/* Seitenleiste: Inhalt und Lesefortschritt */
.art-side { position: sticky; top: 104px; }
.art-toc { position: relative; padding-left: 20px; }
.art-toc::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--line); }
.art-toc::after {
  content: "";
  position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--orange), var(--orange-deep));
  transform-origin: top;
  transform: scaleY(var(--p, 0));
}
.art-toc .mono-label { margin-bottom: 14px; font-size: 11px; color: var(--gray); }
.art-toc .mono-label::before { color: var(--gray); }
.art-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.art-toc a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--gray);
  transition: color 0.3s, transform 0.5s var(--ease-out);
}
.art-toc a:hover { color: var(--ink); }
.art-toc a.on { color: var(--ink); font-weight: 600; transform: translateX(4px); }
.art-next {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.art-next b { display: block; font-family: var(--font-head); font-size: 16px; margin-bottom: 4px; }
.art-next span { display: block; font-size: 13.5px; color: var(--gray); line-height: 1.5; margin-bottom: 12px; }
.art-next .btn { padding: 10px 14px; font-size: 14px; width: 100%; justify-content: center; text-align: center; white-space: normal; line-height: 1.3; }
.art-fig-note { margin-top: 14px; }

/* Abschluss */
.art-end { padding: 0 0 110px; }
.art-end .cta-banner h2 { margin-top: 14px; }

@media (max-width: 1100px) {
  .art-grid { grid-template-columns: minmax(0, 720px); gap: 0; }
  .art-side { display: none; }
}
@media (max-width: 720px) {
  .art { padding: 36px 0 72px; }
  .art-body > p { font-size: 17px; }
  .art-body > p.art-lead { font-size: 19px; }
  .art-body h2 { margin-top: 56px; }
  .art-tldr { padding: 24px 22px 26px; }
  .art-card { padding: 22px 20px; }
  .art-end { padding-bottom: 72px; }
  .art-end .cta-banner { padding: 44px 24px; }
}

/* Bewegung: Endzustand ist der Normalzustand, Animationen nur ohne Reduktionswunsch */
@media (prefers-reduced-motion: no-preference) {
  .art-tldr li { opacity: 0; transform: translateY(10px); }
  .rv.in .art-tldr li, .art-tldr.rv.in li { animation: art-up 0.7s var(--ease-out) forwards; animation-delay: var(--t, 0.2s); }
  .art-quote.rv::before { transform: scaleY(0); transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1) 0.15s; }
  .art-quote.rv.in::before { transform: scaleY(1); }
  .art-quote.rv p { transition-delay: 0.3s; }
}
@keyframes art-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }


/* ---------- Schwund im Lager: Seitenelemente ---------- */

/* Kennzahl im Hero (nur breite Bildschirme) */
.sw-hero .container { position: relative; }
.page-hero.sw-hero h1 { max-width: 700px; }
.sw-hero-stat {
  position: absolute;
  right: 24px; bottom: 0;
  width: 270px;
  padding: 22px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(245, 194, 107, 0.3);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}
.sw-hs-big { display: block; font-family: var(--font-head); font-weight: 700; font-size: 64px; line-height: 1; letter-spacing: -0.045em; color: var(--orange); font-variant-numeric: tabular-nums; }
.sw-hs-big small { font-size: 28px; margin-left: 4px; letter-spacing: 0; color: var(--orange-soft); }
.sw-hs-cap { display: block; margin-top: 10px; font-size: 14.5px; line-height: 1.45; color: rgba(230, 238, 242, 0.85); }
.sw-hs-src { display: block; margin-top: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(230, 238, 242, 0.5); }
@media (max-width: 1100px) { .sw-hero-stat { display: none; } }
@media (prefers-reduced-motion: no-preference) { .sw-hero-stat { animation: art-up 1s var(--ease-out) 0.35s both; } }

/* Kennzahlen-Kacheln */
.sw-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 28px 0 0; }
.sw-tile { padding: 24px 24px 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.sw-tile.main { background: radial-gradient(420px 220px at 100% 0%, rgba(237, 152, 42, 0.26), transparent 60%), linear-gradient(155deg, #16354A, var(--ink) 72%); border-color: transparent; }
.sw-big { display: block; font-family: var(--font-head); font-weight: 700; font-size: 48px; line-height: 1; letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sw-big small { font-size: 20px; margin-left: 6px; letter-spacing: 0; color: var(--orange-deep); font-weight: 600; }
.sw-cap { display: block; margin-top: 12px; font-size: 14.5px; line-height: 1.45; color: var(--gray); }
.sw-tile.main .sw-big { color: #fff; }
.sw-tile.main .sw-big small { color: var(--orange-soft); }
.sw-tile.main .sw-cap { color: rgba(230, 238, 242, 0.78); }

/* Balken Jahresvergleich */
.sw-chart { margin: 12px 0 0; padding: 24px 26px 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.sw-chart .mono-label, .sw-split .mono-label, .sw-time .mono-label { font-size: 11.5px; line-height: 1.5; }
.sw-hbar { display: grid; grid-template-columns: 44px minmax(0, 1fr) 54px; gap: 14px; align-items: center; margin-top: 18px; }
.sw-yr { font-family: var(--font-mono); font-size: 13px; color: var(--gray); }
.sw-track { position: relative; display: block; height: 26px; border-radius: 8px; background: var(--bg-alt); overflow: hidden; }
.sw-track i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 8px; background: linear-gradient(90deg, var(--steel), var(--petrol)); }
.sw-hbar.hi .sw-track i { background: linear-gradient(90deg, var(--orange-soft), var(--orange-deep)); }
.sw-hbar b { font-family: var(--font-head); font-size: 18px; text-align: right; font-variant-numeric: tabular-nums; }

/* Aufteilung Diebstahl */
.sw-split { margin: 26px 0 0; padding: 24px 26px 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.sw-bar { display: flex; height: 44px; margin: 20px 0 20px; border-radius: 12px; overflow: hidden; background: var(--bg-alt); }
.sw-bar i { display: block; height: 100%; width: var(--w); }
.sw-bar i + i { border-left: 2px solid var(--card); }
.sw-bar .c1, .sw-legend .c1::before { background: var(--petrol); }
.sw-bar .c2, .sw-legend .c2::before { background: var(--steel); }
.sw-bar .c3, .sw-legend .c3::before { background: var(--orange); }
.sw-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sw-legend li { position: relative; padding-top: 18px; }
.sw-legend li::before { content: ""; position: absolute; left: 0; top: 0; width: 28px; height: 5px; border-radius: 3px; }
.sw-legend b { display: block; white-space: nowrap; font-family: var(--font-head); font-size: 22px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sw-legend span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--gray); }

/* Schema Jahresverlauf */
.sw-time { margin: 28px 0 0; padding: 24px 26px 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.sw-line { margin-top: 22px; }
.sw-lab b { display: block; font-family: var(--font-head); font-size: 17px; }
.sw-lab span { display: block; margin-top: 1px; font-size: 14px; color: var(--gray); }
.sw-lane { position: relative; height: 66px; margin-top: 8px; }
.sw-lane::before { content: ""; position: absolute; left: 0; right: 0; top: 30%; height: 2px; margin-top: -1px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 11px); }
i.ev { display: block; position: absolute; top: 30%; left: var(--x); width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(237, 152, 42, 0.2); }
i.ev.ok { background: #35C26B; box-shadow: 0 0 0 5px rgba(53, 194, 107, 0.2); }
.sw-flag { position: absolute; right: 0; bottom: 0; padding: 7px 12px; border-radius: 8px; background: var(--ink); color: #fff; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; white-space: nowrap; z-index: 2; }
.sw-flag::before { content: ""; position: absolute; right: 16px; bottom: -5px; width: 10px; height: 10px; background: var(--ink); transform: rotate(45deg); display: none; }
.sw-months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.sw-months span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.02em; color: var(--gray); text-align: center; }
.sw-key { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; font-size: 13.5px; color: var(--gray); }
.sw-key span { display: inline-flex; align-items: center; gap: 10px; }
.sw-key i.ev { position: static; margin: 0 2px 0 0; width: 12px; height: 12px; box-shadow: none; }

@media (max-width: 720px) {
  .sw-tiles { grid-template-columns: 1fr; }
  .sw-big { font-size: 42px; }
  .sw-chart, .sw-split, .sw-time { padding: 20px 18px; }
  .sw-hbar { grid-template-columns: 38px minmax(0, 1fr) 44px; gap: 10px; }
  .sw-legend { grid-template-columns: 1fr; gap: 14px; }
  .sw-legend li { display: grid; grid-template-columns: 136px 1fr; align-items: baseline; padding-top: 12px; }
  .sw-legend li::before { width: 100%; height: 3px; }
  .sw-legend li { column-gap: 12px; }
  .sw-flag { font-size: 10.5px; padding: 6px 9px; }
  .sw-months span { font-size: 8.5px; letter-spacing: 0; }
}

/* Bewegung */
@media (prefers-reduced-motion: no-preference) {
  .sw-tile { opacity: 0; transform: translateY(14px); }
  .sw-tiles.in .sw-tile { animation: art-up 0.8s var(--ease-out) forwards; }
  .sw-tiles.in .sw-tile:nth-child(2) { animation-delay: 0.45s; }
  .sw-tiles.in .sw-tile:nth-child(3) { animation-delay: 0.85s; }
  .sw-tiles.in .sw-tile:nth-child(4) { animation-delay: 1.3s; }

  .sw-track i { width: 0; }
  .sw-chart.in .sw-track i { width: var(--w); transition: width 1.5s cubic-bezier(0.65, 0, 0.35, 1) var(--t); }
  .sw-hbar b { opacity: 0; }
  .sw-chart.in .sw-hbar b { opacity: 1; transition: opacity 0.5s ease calc(var(--t) + 1.1s); }

  .sw-bar i { width: 0; }
  .sw-split.in .sw-bar i { width: var(--w); transition: width 1.2s cubic-bezier(0.65, 0, 0.35, 1) var(--t); }
  .sw-legend li { opacity: 0; transform: translateY(10px); }
  .sw-split.in .sw-legend li { animation: art-up 0.7s var(--ease-out) forwards; }
  .sw-split.in .sw-legend li:nth-child(1) { animation-delay: 0.5s; }
  .sw-split.in .sw-legend li:nth-child(2) { animation-delay: 1.5s; }
  .sw-split.in .sw-legend li:nth-child(3) { animation-delay: 2.2s; }

  .sw-lane i.ev { transform: scale(0); }
  .sw-time.in .sw-lane i.ev { animation: sw-pop 0.6s var(--ease-spring) forwards; animation-delay: var(--t); }
  .sw-time .sw-line:not(.live) i.ev { background: var(--orange); }
  .sw-time.in .sw-line.live i.ev.ok { animation: sw-pop 0.6s var(--ease-spring) forwards, sw-green 0.5s ease forwards; animation-delay: var(--t), calc(var(--t) + 0.6s); background: var(--orange); box-shadow: 0 0 0 5px rgba(237, 152, 42, 0.2); }
  @keyframes sw-pop { from { transform: scale(0); } to { transform: scale(1); } }
  @keyframes sw-green { from { background: var(--orange); box-shadow: 0 0 0 5px rgba(237, 152, 42, 0.2); } to { background: #35C26B; box-shadow: 0 0 0 5px rgba(53, 194, 107, 0.2); } }

  .sw-flag { opacity: 0; }
  .sw-time.in .sw-flag { animation: sw-flag 0.8s var(--ease-out) forwards; animation-delay: var(--t); }
  @keyframes sw-flag { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
}

/* ---------- Bilder und Kontrast (Hero-Foto, Zitat-Foto, dunkles Band) ---------- */
.ah-pic {
  position: absolute; z-index: 1; top: 0; right: 0; bottom: 0;
  width: 52%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
  animation: ah-in 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}
.ah-pic picture { display: block; width: 100%; height: 100%; }
.ah-pic img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.ah-pic::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10, 26, 34, 0.7) 0%, transparent 38%), linear-gradient(180deg, rgba(10, 26, 34, 0.35) 0%, transparent 30%);
}
@keyframes ah-in {
  0% { opacity: 0; transform: translateX(44px) scale(1.06); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@media (max-width: 1000px) {
  .ah-pic { width: 100%; opacity: 0.16; -webkit-mask-image: none; mask-image: none; }
}

.art-quote.aq-photo {
  isolation: isolate; overflow: hidden;
  margin: 48px 0; padding: 44px 40px 44px 46px;
  border-radius: 20px; color: #fff;
  box-shadow: 0 30px 60px rgba(10, 26, 34, 0.28);
}
.art-quote.aq-photo::before { z-index: 2; left: 22px; top: 44px; bottom: 44px; }
.aq-bg { position: absolute; inset: 0; z-index: -2; }
.aq-bg picture { display: block; width: 100%; height: 100%; }
.aq-bg img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 2s cubic-bezier(0.16, 1, 0.3, 1); }
.art-quote.in .aq-bg img { transform: scale(1); }
.aq-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 26, 34, 0.94) 0%, rgba(10, 26, 34, 0.82) 55%, rgba(10, 26, 34, 0.5) 100%); }
.art-quote.aq-photo p { color: #fff; position: relative; }
.art-quote.aq-photo .mono-label { color: var(--orange-soft); }

.art-more .sec-head { margin-bottom: 40px; }
.spec-strip.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.spec-strip.three .spec { aspect-ratio: 4 / 5; }
@media (max-width: 720px) {
  .art-quote.aq-photo { padding: 32px 22px 32px 34px; }
  .art-quote.aq-photo::before { left: 14px; top: 32px; bottom: 32px; }
  .spec-strip.three { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  .ah-pic { animation: none; }
  .aq-bg img { transform: none; transition: none; }
}
