/* studio makamoti · Ratgeber-Artikel (13.11.2026)
   Nachbau der Orvena-Artikelvorlage (orvena.framer.website/journal/…), ergänzt ../style.css.
   Maße am Original gemessen: Titel 72/38 px, Einleitung 26/21 px, Fließtext 19/17 px, Spalte 740 px,
   Titelbild auf gelber Platte (+1,5°), Rahmen beim Scrollen von −4° und 0,96 auf 0° und 1,02. */

/* ---------- Kopf ---------- */
.ra-hero { position: relative; padding: calc(var(--nav-h) + 94px) var(--pad) 0; }
/* Senkrechte Linien im Artikelkopf am 14.11.2026 entfernt (Marco, wie auf der Startseite) */
.ra-head { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ra-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 4px; }
.ra-meta .pill { width: 250px; rotate: -3deg; }
.ra-h1 { margin-top: 22px; font-size: 72px; line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; }
.ra-byline { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; font-size: 14px; line-height: 1.45; letter-spacing: -.005em; color: var(--muted); }
.ra-byline > span:first-child { color: var(--ink); }
.ra-byline i { width: 10px; height: 10px; flex: none; background: var(--orange);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,0 56.1,35.2 85.4,14.6 64.8,43.9 100,50 64.8,56.1 85.4,85.4 56.1,64.8 50,100 43.9,64.8 14.6,85.4 35.2,56.1 0,50 35.2,43.9 14.6,14.6 43.9,35.2'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,0 56.1,35.2 85.4,14.6 64.8,43.9 100,50 64.8,56.1 85.4,85.4 56.1,64.8 50,100 43.9,64.8 14.6,85.4 35.2,56.1 0,50 35.2,43.9 14.6,14.6 43.9,35.2'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Titelbild: Orvena nutzt ein breites Querformat. Unsere Bilder sind hochkant (896 × 1112 px),
   deshalb ein schmalerer Rahmen im Format 4:3, damit nichts hochskaliert und kein Gesicht abgeschnitten wird. */
.ra-cover { position: relative; z-index: 1; width: min(100%, 920px); aspect-ratio: 4 / 3; margin: 56px auto 0; }
.ra-cover__plate { position: absolute; inset: 0; border-radius: 34px; background: var(--yellow); rotate: 1.5deg; }
.ra-cover__frame { position: absolute; inset: 0; border-radius: 34px; overflow: hidden; background: var(--sand); will-change: transform; } /* Kippen beim Scrollen setzt ../main.js (data-scroll="kipp", seit 14.11.2026) */
.ra-cover__frame img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 40%); }

/* ---------- Text ---------- */
.ra-body { padding: 110px var(--pad) 0; }
.ra-col { max-width: 740px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.ra-kurz { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.ra-kurz .pill { width: auto; padding: 8px 16px; font-size: 15px; }
.ra-lead { font-size: 26px; line-height: 1.3; letter-spacing: -.03em; color: var(--ink); text-wrap: pretty; }
.ra-rule { height: 1px; border: 0; margin: 0; background: #e2dcd0; }

.ra-text { font-size: 19px; line-height: 1.7; letter-spacing: -.01em; color: var(--text2); overflow-wrap: break-word; }
.ra-faq { margin-top: 16px; }
.ra-text > * + * { margin-top: 20px; }
.ra-text h2 { margin-top: 56px; font-size: 34px; line-height: 1.12; letter-spacing: -.035em; color: var(--ink); text-wrap: balance; }
.ra-text h3 { margin-top: 36px; font-size: 24px; line-height: 1.2; letter-spacing: -.025em; color: var(--ink); text-wrap: balance; }
.ra-text h2 + *, .ra-text h3 + * { margin-top: 16px; }
.ra-text li, .ra-def dd, .ra-faq__item p, .ra-quellen li { text-wrap: pretty; }
.ra-text > :first-child { margin-top: 0; }
.ra-text strong { font-weight: 600; color: var(--ink); }
.ra-text a, .ra-faq a, .ra-close__text a { color: var(--violet); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(43, 26, 115, .35); transition: text-decoration-color .3s; }
.ra-text a:hover, .ra-faq a:hover { text-decoration-color: currentColor; }

/* Aufzählung mit kleinem Stern, nummerierte Schritte, Häkchen-Liste */
.ra-text ul > li, .ra-text ol > li { position: relative; padding-left: 30px; }
.ra-text li + li { margin-top: 10px; }
.ra-text ul:not(.ra-check) > li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 10px; height: 10px; background: var(--orange);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,0 56.1,35.2 85.4,14.6 64.8,43.9 100,50 64.8,56.1 85.4,85.4 56.1,64.8 50,100 43.9,64.8 14.6,85.4 35.2,56.1 0,50 35.2,43.9 14.6,14.6 43.9,35.2'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,0 56.1,35.2 85.4,14.6 64.8,43.9 100,50 64.8,56.1 85.4,85.4 56.1,64.8 50,100 43.9,64.8 14.6,85.4 35.2,56.1 0,50 35.2,43.9 14.6,14.6 43.9,35.2'/%3E%3C/svg%3E") center / contain no-repeat; }
.ra-text ol { counter-reset: ra; }
.ra-text ol > li { counter-increment: ra; padding-left: 50px; min-height: 34px; }
.ra-text ol > li::before { content: counter(ra); position: absolute; left: 0; top: .1em; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 100px; background: var(--sand); font-size: 15px; line-height: 1; font-weight: 500; letter-spacing: -.02em; color: var(--ink); }
.ra-check { padding: 26px 28px; border-radius: 24px; background: var(--white); border: 1px solid rgba(17, 18, 24, .06); }
.ra-check > li { padding-left: 42px !important; }
.ra-check > li::before { content: ""; position: absolute; left: 0; top: .2em; width: 26px; height: 26px; border-radius: 100px;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.5 12.5l4.2 4.2L18.5 8' fill='none' stroke='%23111218' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }

/* Begriff kurz erklärt */
.ra-def { padding: 24px 28px 26px; border-radius: 24px; background: var(--sand); color: var(--ink); }
.ra-def dt { font-size: 19px; line-height: 1.25; font-weight: 500; letter-spacing: -.02em; color: var(--ink); }
.ra-def dd { margin: 8px 0 0; font-size: 18px; line-height: 1.6; letter-spacing: -.01em; }
.ra-def dd strong { font-weight: 600; }

/* ---------- Fragen ---------- */
.ra-faq h2, .ra-quellen h2 { font-size: 34px; line-height: 1.12; letter-spacing: -.035em; color: var(--ink); }
.ra-faq__list { margin-top: 22px; border-top: 1px solid #e2dcd0; }
.ra-faq__item { padding: 22px 0 24px; border-bottom: 1px solid #e2dcd0; }
.ra-faq__item h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.ra-faq__item p { margin-top: 10px; font-size: 17px; line-height: 1.65; letter-spacing: -.008em; color: var(--text2); }

/* ---------- Quellen ---------- */
.ra-quellen h2 { font-size: 22px; line-height: 1.2; letter-spacing: -.02em; }
.ra-quellen__stand { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.ra-quellen ol { margin-top: 16px; counter-reset: q; }
.ra-quellen li { counter-increment: q; position: relative; padding-left: 28px; font-size: 14.5px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.ra-quellen li + li { margin-top: 8px; }
.ra-quellen li::before { content: counter(q) "."; position: absolute; left: 0; color: var(--ink); }
.ra-quellen a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(17, 18, 24, .3); }
.ra-quellen a:hover { text-decoration-color: currentColor; }

/* ---------- Lila Abschluss-Box ---------- */
.ra-close { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 36px; border-radius: 28px; background: var(--lilac); transform-origin: 50% 0; } /* wächst beim Scrollen ins Bild wie die Anfrage-Fläche der Startseite (data-scroll="grow", seit 14.11.2026) */
.ra-close__spark { width: 32px; height: 32px; fill: var(--violet); }
.ra-close__h { font-size: 36px; line-height: 1.1; letter-spacing: -.035em; color: var(--violet); text-wrap: balance; }
.ra-close__text { font-size: 17px; line-height: 1.55; color: var(--violet); max-width: 560px; }
.ra-close .actions { margin-top: 4px; }

/* ---------- Weiterlesen ---------- */
.ra-more { padding: 120px 0 140px; }
.ra-more .articles { grid-template-columns: repeat(2, 1fr); }
.ra-more .article__media img { transform: none; }

/* Karten als Links (Startseite und Weiterlesen): Regeln stehen in ../style.css */

/* ---------- Bewegung ----------
   Seit 14.11.2026 wie auf der Startseite mit Motion und ../main.js (Klasse m, data-a, data-reveal, data-scroll), angeglichen an
   Orvenas Journal-Seite: Kopf beim Laden, Titel Wort für Wort, Einleitung aus der Unschärfe, Fließtext und Fragen ruhen,
   Abschluss-Box wie die Anfrage-Fläche, „Mehr aus dem Ratgeber“ wie die Startseite. Vorher eigene CSS-Einblendungen. */

/* ---------- Tablet ---------- */
@media (max-width: 1199px) {
  .ra-hero { padding-top: calc(var(--nav-h) + 72px); }
  .ra-h1 { font-size: 58px; }
  .ra-cover { width: min(100%, 760px); }
  .ra-body { padding-top: 88px; }
  .ra-lead { font-size: 24px; }
  .ra-text { font-size: 18px; }
  .ra-text h2, .ra-faq h2 { font-size: 30px; }
  .ra-more { padding: 96px 0 110px; }
}

/* ---------- Handy ---------- */
@media (max-width: 809px) {
  .ra-hero { padding-top: calc(var(--nav-h) + 52px); }
  .ra-meta { flex-direction: column; gap: 4px; }
  .ra-meta .btn { height: 49px; font-size: 15px; }
  .ra-meta .pill { font-size: 15px; }
  .ra-h1 { margin-top: 16px; font-size: 38px; letter-spacing: -.045em; }
  .ra-byline { margin-top: 18px; font-size: 13.5px; gap: 4px 12px; }
  .ra-byline i:nth-of-type(2) { display: none; }
  .ra-byline > span:last-child { flex-basis: 100%; }
  .ra-cover { aspect-ratio: 1 / 1; margin-top: 26px; }
  .ra-cover__plate, .ra-cover__frame { border-radius: 24px; }
  .ra-body { padding-top: 56px; }
  .ra-col { gap: 28px; }
  .ra-lead { font-size: 19px; }
  .ra-text { font-size: 17px; }
  .ra-text > * + * { margin-top: 16px; }
  .ra-text h2, .ra-faq h2 { margin-top: 44px; font-size: 26px; }
  .ra-faq h2 { margin-top: 0; }
  .ra-text h3 { margin-top: 30px; font-size: 21px; }
  .ra-text ol > li { padding-left: 44px; }
  .ra-text ol > li::before { width: 30px; height: 30px; font-size: 14px; }
  .ra-check { padding: 20px 18px; border-radius: 20px; }
  .ra-def { padding: 20px 20px 22px; border-radius: 20px; }
  .ra-def dd { font-size: 16.5px; }
  .ra-def dt { font-size: 17.5px; }
  .ra-faq__item h3 { font-size: 19px; }
  .ra-faq__item p { font-size: 16px; }
  .ra-close { padding: 26px 20px; border-radius: 22px; }
  .ra-close__h { font-size: 26px; }
  .ra-close__text { font-size: 16px; }
  .ra-close .actions { flex-direction: column; align-self: stretch; }
  .ra-close .actions .btn { justify-content: center; white-space: normal; height: auto; min-height: 49px; padding-top: 14px; padding-bottom: 14px; line-height: 1.2; }
  .ra-more { padding: 72px 0 80px; }
  .ra-more .articles { grid-template-columns: 1fr; }
}
@media (min-width: 600px) and (max-width: 809px) {
  .ra-cover { aspect-ratio: 4 / 3; width: min(100%, 640px); }
  .ra-col { max-width: 620px; }
  .ra-h1 { font-size: 48px; }
}
/* „Stand:“ auch am kleinen Handy zeigen (Marco 23.11.2026: überall „Stand“ statt Erscheinungsdatum) */
@media (max-width: 359px) {
  .ra-h1 { font-size: 33px; }
  .ra-lead { font-size: 18.5px; }
  .ra-meta .pill { width: 220px; }
}

/* „Bewegung anhalten“ gilt seit 14.11.2026 für Startseite und Artikel gleich (../main.js) */

/* Quellen-Hochzahlen im Text */
.ra-fn { font-size: .62em; line-height: 0; vertical-align: super; }
.ra-text .ra-fn a { margin: -6px -2px -6px -1px; padding: 6px 4px; font-weight: 500; text-decoration: none; color: var(--violet); }
.ra-text .ra-fn a:hover { text-decoration: underline; }
.ra-quellen li { scroll-margin-top: calc(var(--nav-h) + 24px); border-radius: 6px; transition: background-color .4s; }
.ra-quellen li:target { background: var(--lilac2); }

/* ---------- Ergänzungen zur Ratgeber-Übersicht (23.11.2026, Design-Prüfung von STM · Ratgeber) ---------- */
.ra-byline > span { white-space: nowrap; }
/* Weiterlesen: drei Karten wie Orvena ab 900 px */
@media (min-width: 900px) { .ra-more .articles { grid-template-columns: repeat(3, 1fr); gap: 16px; } .ra-more .article__tag { width: auto; } }
@media (max-width: 809px) { .ra-more .pill { width: 250px; max-width: 100%; } }
/* Kasten „Aktueller Anlass“ unter „Kurz gesagt“ (beim Auffrischen „Was ist neu“): Überschrift als Pille, kein Rahmen, Text in Lesegröße */
.ra-neu { padding: 24px 28px; border-radius: 24px; background: var(--lilac2); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.ra-neu .pill { rotate: -2deg; }
.ra-neu ul { display: flex; flex-direction: column; gap: 12px; }
.ra-neu li { font-size: 17px; line-height: 1.55; color: var(--ink); }
.ra-neu time { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 500; color: var(--violet); }
@media (max-width: 809px) { .ra-neu { padding: 20px 18px; } .ra-neu li { font-size: 16px; } }
/* 320 px: Knopf im lila Abschluss einzeilig */
@media (max-width: 359px) { .ra-close .btn { font-size: 14px; padding-inline: 16px; white-space: nowrap; } .ra-close .btn .dots { display: none; } }
