/* 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; } }


/* ---------- Build vs. Buy: Seitenelemente ---------- */

/* Standard passt / Standard stoesst an Grenzen */
.bb-lim { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 28px 0 0; }
.bb-lim-card { padding: 24px 24px 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.bb-lim-card.ok { border-color: rgba(42, 157, 92, 0.35); background: linear-gradient(180deg, rgba(53, 194, 107, 0.07), var(--card)); }
.bb-lim-card.ok .mono-label { color: #2A9D5C; }
.bb-lim-card.edge { border-color: rgba(237, 152, 42, 0.45); background: linear-gradient(180deg, rgba(237, 152, 42, 0.09), var(--card)); }
.bb-lim-card .mono-label { font-size: 11.5px; line-height: 1.4; }
.bb-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 14px; }
.bb-pills span { padding: 7px 13px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-family: var(--font-head); font-weight: 600; font-size: 14px; }
.bb-lim-card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--gray); }

/* Kostenrechnung */
.bb-cost { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 28px 0 0; }
.bb-col { padding: 22px 22px 20px; border-radius: 18px; background: var(--bg-alt); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.bb-col .mono-label { font-size: 11.5px; margin-bottom: 4px; }
.bb-row { padding: 13px 15px; border-radius: 12px; background: var(--card); border: 1.5px solid var(--ink); }
.bb-row b { display: block; font-family: var(--font-head); font-size: 15.5px; line-height: 1.3; }
.bb-row span { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.45; color: var(--gray); }
.bb-row.hid { border: 1.5px dashed var(--orange-deep); background: rgba(237, 152, 42, 0.07); }

/* Seraphone-Weg */
.bb-story { display: grid; grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr) 38px minmax(0, 0.85fr); align-items: stretch; margin: 28px 0 0; }
.bb-node { padding: 18px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.bb-node .mono-label { font-size: 10.5px; }
.bb-node b { display: block; margin-top: 8px; font-family: var(--font-head); font-size: 16px; line-height: 1.3; }
.bb-node.gap { border: 2px dashed var(--orange-deep); background: rgba(237, 152, 42, 0.07); }
.bb-node.now { background: radial-gradient(360px 180px at 100% 0%, rgba(237, 152, 42, 0.26), transparent 60%), linear-gradient(155deg, #16354A, var(--ink) 72%); border-color: transparent; color: #fff; }
.bb-node.now .mono-label, .bb-node.now .mono-label::before { color: var(--orange-soft); }
.bb-node.now b { font-size: 21px; }
.bb-line { position: relative; align-self: center; height: 2px; margin: 0 4px; background: linear-gradient(90deg, var(--petrol), var(--orange)); transform-origin: left; }
.bb-line::after { content: ""; position: absolute; right: -1px; top: -4px; width: 8px; height: 8px; border: solid var(--orange); border-width: 2px 2px 0 0; transform: rotate(45deg); }

.art-photo { max-height: 480px; }

/* Waage */
.bb-scale { margin: 30px 0 0; padding: 26px 26px 24px; border-radius: 22px; background: radial-gradient(560px 280px at 100% 0%, rgba(237, 152, 42, 0.2), transparent 62%), linear-gradient(155deg, #16354A, var(--ink) 72%); color: #E6EEF2; --r: -6deg; }
.bb-scale > .mono-label, .bb-scale > .mono-label::before { color: var(--orange-soft); font-size: 11.5px; }
.bb-scale[data-state="kaufen"] { --r: -9deg; }
.bb-scale[data-state="bauen"] { --r: 9deg; }
.bb-scale[data-state="mitte"] { --r: 0deg; }
.bb-stage { position: relative; height: 196px; margin: 8px 0 8px; }
.bb-post { position: absolute; left: 50%; top: 56px; bottom: 0; width: 60px; margin-left: -30px; background: linear-gradient(180deg, rgba(245, 194, 107, 0.9), rgba(245, 194, 107, 0.25)); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.bb-beam { position: absolute; left: 7%; right: 7%; top: 48px; height: 8px; border-radius: 4px; background: var(--orange-soft); transform: rotate(var(--r)); transform-origin: 50% 50%; transition: transform 1.3s cubic-bezier(0.34, 1.45, 0.64, 1); }
.bb-beam::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(237, 152, 42, 0.3); }
.bb-pan { position: absolute; top: 4px; width: 124px; margin-left: -62px; display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; transform: rotate(calc(var(--r) * -1)); transition: transform 1.3s cubic-bezier(0.34, 1.45, 0.64, 1); }
.bb-pan.l { left: 0; }
.bb-pan.r { left: 100%; }
.bb-pan i { display: block; width: 1.5px; height: 56px; background: rgba(245, 194, 107, 0.7); }
.bb-pan span { display: block; min-width: 100px; padding: 11px 16px; border-radius: 6px 6px 18px 18px; text-align: center; font-family: var(--font-head); font-weight: 700; font-size: 17px; background: #E6EEF2; color: var(--ink); transition: background-color 0.6s ease, color 0.6s ease; }
.bb-pan.r span { background: rgba(230, 238, 242, 0.14); color: #E6EEF2; }
.bb-scale[data-state="bauen"] .bb-pan.r span { background: var(--orange); color: var(--ink); }
.bb-scale[data-state="bauen"] .bb-pan.l span { background: rgba(230, 238, 242, 0.14); color: #E6EEF2; }
.bb-scale[data-state="mitte"] .bb-pan span { background: rgba(230, 238, 242, 0.14); color: #E6EEF2; }

.bb-opts { display: grid; gap: 8px; margin-top: 6px; }
.bb-opts button {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #E6EEF2;
  font: inherit; font-size: 15.5px; line-height: 1.4; font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.3s var(--ease-spring);
}
.bb-opts button::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(245, 194, 107, 0.7); transition: background-color 0.2s, box-shadow 0.2s; }
.bb-opts button:hover { background: rgba(245, 194, 107, 0.12); border-color: rgba(245, 194, 107, 0.5); }
.bb-opts button:active { transform: scale(0.985); }
.bb-opts button:focus-visible { outline: 2px solid var(--orange-soft); outline-offset: 2px; }
.bb-opts button[aria-checked="true"] { background: rgba(237, 152, 42, 0.18); border-color: var(--orange); color: #fff; }
.bb-opts button[aria-checked="true"]::before { background: var(--orange); box-shadow: inset 0 0 0 3px var(--ink); }
.bb-verdict { margin: 18px 2px 0; min-height: 3.2em; font-family: var(--font-head); font-size: 19px; line-height: 1.4; font-weight: 600; color: #fff; }

@media (max-width: 720px) {
  .bb-lim, .bb-cost { grid-template-columns: 1fr; }
  .bb-story { grid-template-columns: 1fr; }
  .bb-line { width: 2px; height: 26px; margin: 0 auto; justify-self: center; background: linear-gradient(180deg, var(--petrol), var(--orange)); transform-origin: top; }
  .bb-line::after { right: -4px; top: auto; bottom: -1px; transform: rotate(135deg); }
  .bb-scale { padding: 22px 16px 20px; }
  .bb-stage { height: 176px; }
  .bb-pan { width: 96px; margin-left: -48px; }
  .bb-pan i { height: 44px; }
  .bb-pan span { min-width: 80px; padding: 9px 12px; font-size: 15px; }
  .bb-opts button { padding: 12px 12px; font-size: 14.5px; }
  .bb-verdict { font-size: 17px; min-height: 5em; }
}

/* Bewegung */
@media (prefers-reduced-motion: no-preference) {
  .bb-lim-card, .bb-row, .bb-node { opacity: 0; transform: translateY(14px); }
  .bb-lim.in .bb-lim-card, .bb-cost.in .bb-row, .bb-story.in .bb-node { animation: art-up 0.75s var(--ease-out) forwards; animation-delay: var(--t, 0s); }
  .bb-line { transform: scaleX(0); }
  .bb-story.in .bb-line { transform: scaleX(1); transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1) var(--t); }
  .bb-scale:not(.in) { --r: 0deg; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 720px) {
  .bb-line { transform: scaleY(0); }
  .bb-story.in .bb-line { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .bb-beam, .bb-pan { transition: 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; }
}
