/*
Theme Name:   die Seelmeisterin — Atelier
Theme URI:    https://dieseelmeisterin.at
Author:       Steky Studio
Author URI:   https://milosevic.at
Description:  Zweite Bühne für die Seelmeisterin. Bütten und Tusche statt Pastellfläche, Cormorant Garamond + Karla, Schöpfrand statt Blob, eine gezogene Tuschelinie statt des Sternenfelds. Video-Hero, scroll-gescrubbte Tuschewolke. Gleiche Marke, andere Handschrift — das Theme „die Seelmeisterin" bleibt unberührt daneben stehen.
Version:      1.0.0
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  seelmeisterin-atelier
*/

/* ═══════════════════════════════════════════════════════════
   1 · TOKENS

   Die Markenfarben sind unverändert aus dem ersten Theme über-
   nommen — es soll dieselbe Frau sein, nur ein anderer Raum. Neu
   ist die Papierebene darunter: wärmer und eine Spur tiefer als
   das Creme der ersten Fassung, damit Weiß wieder Weiß sein kann.
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Papier & Tinte — die Bühne */
  --paper:        #F3EBE0;
  --paper-light:  #FAF5EE;
  --paper-deep:   #E8DCCB;
  --ink:          #2C2228;
  --ink-soft:     #5E4E56;   /* 6,6:1 auf Papier */
  --ink-faint:    #8E7C84;   /* nur dekorativ, nie Fließtext */
  --rule:         #D9C9B7;   /* Haarlinie, warm */
  --rule-soft:    #E6D9C9;

  /* Marke — unverändert aus `seelmeisterin` */
  --blush:        #F5BDC8;
  --powder:       #BACDDC;
  --sage:         #D1E3D6;
  --mauve:        #9D6679;
  --burgundy:     #8A4F62;
  --accent:       #7C4356;   /* 6,4:1 auf Papier: Kapitelzahlen, Links, Marken */
  --blush-wash:   #F7E3E6;
  --powder-wash:  #E8EEF3;
  --sage-wash:    #E9F1EB;

  /* Semantik */
  --surface:      var(--paper);
  --text:         var(--ink);
  --text-muted:   var(--ink-soft);
  --link:         var(--accent);
  --link-hover:   var(--ink);

  /* Schrift */
  --font-display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-body:    'Karla', -apple-system, 'Segoe UI', system-ui, sans-serif;

  /* Cormorant hat eine kleine x-Höhe. Wo Playfair bei 4,5rem laut
     wird, wird Cormorant erst bei 7rem groß — die Skala ist deshalb
     bewusst weiter oben angesetzt als im ersten Theme. */
  --fs-display: clamp(3.25rem, 8.4vw, 7.5rem);
  --fs-h1:      clamp(2.5rem, 5.4vw, 4.25rem);
  --fs-h2:      clamp(2rem, 4vw, 3rem);
  --fs-h3:      clamp(1.375rem, 2vw, 1.75rem);
  --fs-quote:   clamp(1.75rem, 3.2vw, 2.75rem);
  --fs-lead:    1.1875rem;   /* 19 */
  --fs-body:    1.0625rem;   /* 17 */
  --fs-small:   0.9375rem;   /* 15 */
  --fs-label:   0.8125rem;   /* 13 — nichts darunter, nirgends */

  --lh-display: 1.02;
  --lh-heading: 1.14;
  --lh-body:    1.75;
  --ls-label:   0.18em;

  /* Raum */
  --gutter:      clamp(20px, 5vw, 56px);
  --band-y:      clamp(72px, 10vw, 148px);
  --max-content: 1180px;
  --max-prose:   58ch;

  /* Form: außer der Pille gibt es keinen Radius. Wo das erste Theme
     rundet, reißt dieses — der Schöpfrand ist die Formsprache. */
  --radius-pill: 999px;

  /* Bewegung */
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur:       520ms;
}

/* ═══════════════════════════════════════════════════════════
   2 · RESET & BASIS
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Das Bütten liegt unter allem. Eine eigene Schicht statt eines
   background-image auf dem body, damit die Deckkraft steuerbar
   bleibt, ohne den Text mitzudimmen. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("assets/img/paper-tile.webp");
  background-size: 600px 600px;
  opacity: 0.5;
  mix-blend-mode: multiply;
}

img, video, svg { max-width: 100%; height: auto; display: block; }

/* `figure` bringt vom Browser 40px Rand links und rechts mit. Ohne diese
   Zeile sind alle Bilder in Figuren rund 80px schmaler als ihre Spalte —
   und zwar unterschiedlich stark, je nach Spaltenbreite. */
figure { margin: 0; }
blockquote { margin: 0; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--link-hover); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: var(--paper-light);
  padding: 12px 20px;
  font-size: var(--fs-small);
}
.skip-link:focus { left: 12px; top: 12px; }

.sma-sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════
   3 · TYPOGRAFIE

   Die Regel des ersten Themes gilt weiter: Überschriften sind
   *leichter* als der Fließtext darunter. Cormorant 300 flüstert,
   wo eine 600er-Grotesk rufen würde.
   ═══════════════════════════════════════════════════════════ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-display); letter-spacing: -0.012em; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-heading); letter-spacing: -0.008em; }
h3 { font-size: var(--fs-h3); line-height: 1.24; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.sma-lead {
  font-size: var(--fs-lead);
  line-height: 1.68;
  color: var(--text-muted);
  max-width: var(--max-prose);
  text-wrap: pretty;
}

.sma-prose { max-width: var(--max-prose); }
.sma-prose p + p { margin-top: 1.1em; }

/* Laborzettel-Stimme: Mengen, Marken, Pflichtangaben. Versal,
   getrackt, 13px. Kein eigener Schnitt dafür — Karla genügt. */
.sma-spec {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* Kapitelmarke: Zahl, Haarlinie, Wort. Ersetzt die Eyebrow-Formel. */
.sma-chapter {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 clamp(24px, 3vw, 40px);
}
.sma-chapter__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent);
}
.sma-chapter__rule {
  flex: 0 0 clamp(32px, 6vw, 72px);
  height: 1px;
  background: var(--rule);
}
.sma-chapter__label {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ═══════════════════════════════════════════════════════════
   4 · LAYOUT
   ═══════════════════════════════════════════════════════════ */

main { position: relative; z-index: 1; }

.sma-wrap {
  width: 100%;
  max-width: var(--max-content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Bänder statt Kästen: randlose Farbfelder über die volle Breite. */
.sma-band {
  position: relative;
  padding-block: var(--band-y);
}
.sma-band--paper { background: var(--paper); }
.sma-band--deep  { background: var(--paper-deep); }
.sma-band--light { background: var(--paper-light); }

.sma-band--ink {
  background: var(--ink);
  color: var(--paper);
}
.sma-band--ink h1,
.sma-band--ink h2,
.sma-band--ink h3 { color: var(--paper-light); }
.sma-band--ink .sma-lead { color: rgba(243, 235, 224, 0.78); }
.sma-band--ink .sma-chapter__num { color: var(--blush); }
.sma-band--ink .sma-chapter__label { color: rgba(243, 235, 224, 0.66); }
.sma-band--ink .sma-chapter__rule { background: rgba(243, 235, 224, 0.3); }
.sma-band--ink a { color: var(--blush); }
.sma-band--ink a:hover { color: var(--paper-light); }

/* Wo zwei helle Bänder aneinanderstoßen, markiert eine Haarlinie die
   Naht — der Tonwechsel allein ist zu leise, um als Raumwechsel zu
   lesen. Zwischen hell und dunkel entfällt sie. */
.sma-band + .sma-band:not(.sma-band--ink)::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--rule-soft);
}
.sma-band--ink + .sma-band::before { display: none; }

/* Korn auf den dunklen Flächen: Tinte auf Papier hat eine Oberfläche. */
.sma-band--ink::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("assets/img/grain.png");
  background-size: 220px 220px;
  opacity: 0.5;
  mix-blend-mode: overlay;
}

/* Asymmetrische Paare, nie hälftig. */
.sma-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (min-width: 900px) {
  .sma-split { grid-template-columns: 5fr 7fr; }
  .sma-split--wide-first { grid-template-columns: 7fr 5fr; }
}

/* ═══════════════════════════════════════════════════════════
   5 · BAUTEILE
   ═══════════════════════════════════════════════════════════ */

/* — Knöpfe: Pille, mindestens 48px hoch — */
.sma-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 260ms var(--ease-soft),
              color 260ms var(--ease-soft),
              border-color 260ms var(--ease-soft),
              transform 180ms var(--ease-soft);
}
.sma-btn--primary {
  background: var(--ink);
  color: var(--paper-light);
}
.sma-btn--primary:hover {
  background: var(--accent);
  color: var(--paper-light);
}
.sma-btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.sma-btn--ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: rgba(44, 34, 40, 0.04);
}
.sma-btn:active { transform: scale(0.99); }
.sma-btn--sm { min-height: 42px; padding: 9px 20px; font-size: var(--fs-label); }
.sma-btn--lg { min-height: 54px; padding: 16px 38px; font-size: var(--fs-body); }

.sma-band--ink .sma-btn--primary { background: var(--paper-light); color: var(--ink); }
.sma-band--ink .sma-btn--primary:hover { background: var(--blush); color: var(--ink); }
.sma-band--ink .sma-btn--ghost { color: var(--paper-light); border-color: rgba(243, 235, 224, 0.34); }
.sma-band--ink .sma-btn--ghost:hover { border-color: var(--paper-light); background: rgba(250, 245, 238, 0.08); }

/* — Textlink mit Pfeil — */
.sma-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 3px;
  transition: border-color 240ms var(--ease-soft), color 240ms var(--ease-soft);
}
.sma-arrow:hover { border-color: currentColor; }
.sma-arrow span { transition: transform 240ms var(--ease-soft); }
.sma-arrow:hover span { transform: translateX(4px); }

/* — Schöpfrand: die Formsprache dieses Themes —
   Eine echte Alphamaske, keine border-radius-Andeutung.

   Das Bild wird nicht selbst beschnitten, sondern auf ein Blatt Bütten
   *aufgezogen*: der Rand gehört dem Papier, nicht dem Foto. Erst dadurch
   liest sich die Kante als geschöpft statt als ausgestanztes Bild — und
   ein freigestelltes Porträt bekommt eine Fläche, auf der es steht.

   Es gibt zwei Masken, quer und hoch. Eine einzige, auf 100 % gezogen,
   staucht die Rissfrequenz je nach Seitenverhältnis unterschiedlich
   stark; bei einem hochkanten Porträt fällt das auf. */
.sma-deckle {
  position: relative;
  padding: clamp(12px, 1.6vw, 22px);
  /* Glatte Fläche, keine Papierkachel: die Kachel ist eine Makro-
     aufnahme und wird hinter einem Bild zur fleckigen Steinfläche.
     Der Rand macht das Papier, nicht die Textur. */
  background-color: var(--paper-light);
  -webkit-mask-image: url("assets/img/deckle-mask.png");
          mask-image: url("assets/img/deckle-mask.png");
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
}
.sma-deckle--p {
  -webkit-mask-image: url("assets/img/deckle-mask-p.png");
          mask-image: url("assets/img/deckle-mask-p.png");
}
.sma-deckle img { width: 100%; }

/* Warmes Licht hinter dem Porträt. Das ist Licht, keine Erhebung —
   die einzige Ausnahme von „flach", genau wie im ersten Theme. */
.sma-aura {
  position: relative;
  isolation: isolate;
}
.sma-aura::before {
  content: "";
  position: absolute;
  inset: -8% -6%;
  z-index: -1;
  background: radial-gradient(60% 55% at 50% 45%, rgba(245, 189, 200, 0.55), rgba(245, 189, 200, 0) 70%);
  filter: blur(34px);
  pointer-events: none;
}

/* — Bildunterschrift — */
.sma-cap {
  margin-top: 12px;
  font-size: var(--fs-label);
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

/* ═══════════════════════════════════════════════════════════
   6 · KOPFZEILE
   ═══════════════════════════════════════════════════════════ */

.sma-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 235, 224, 0.82);
  border-bottom: 1px solid transparent;
  transition: background-color 300ms var(--ease-soft), border-color 300ms var(--ease-soft);
}
@supports (backdrop-filter: blur(12px)) {
  /* backdrop-filter bleibt der Kopfzeile vorbehalten: hier liegt sie
     über scrollendem Inhalt und hat damit eine Aufgabe. */
  .sma-header { backdrop-filter: blur(14px) saturate(1.1); }
}
.sma-header.is-scrolled {
  background: rgba(243, 235, 224, 0.94);
  border-bottom-color: var(--rule-soft);
}

.sma-nav {
  max-width: var(--max-content);
  margin-inline: auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.sma-nav__brand { display: inline-flex; color: var(--accent); transition: color 240ms var(--ease-soft); }
.sma-nav__brand:hover { color: var(--ink); }
.sma-logo-word svg { height: 52px; width: auto; display: block; }

.sma-nav__links {
  display: none;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 900px) { .sma-nav__links { display: flex; } }

.sma-nav__links a:not(.sma-btn) {
  font-size: var(--fs-small);
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 220ms var(--ease-soft), border-color 220ms var(--ease-soft);
}
.sma-nav__links a:not(.sma-btn):hover {
  color: var(--ink);
  border-bottom-color: var(--rule);
}

.sma-nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-size: 1.05rem;
  cursor: pointer;
}
@media (min-width: 900px) { .sma-nav__toggle { display: none; } }

.sma-nav__panel {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px var(--gutter) 26px;
  border-top: 1px solid var(--rule-soft);
  background: var(--paper);
}
.sma-nav__panel.is-open { display: flex; }
.sma-nav__panel a:not(.sma-btn) {
  padding: 14px 0;
  font-size: var(--fs-lead);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-soft);
}
.sma-nav__panel .sma-btn { margin-top: 18px; }

/* ═══════════════════════════════════════════════════════════
   7 · HERO

   Das Video ist kein Deko-Hintergrund, sondern die Fläche selbst:
   ein Blatt Bütten, über das das Morgenlicht wandert. Ein Schleier
   aus Papierfarbe von links legt die Textseite frei.
   ═══════════════════════════════════════════════════════════ */

.sma-hero {
  position: relative;
  isolation: isolate;
  min-height: min(92vh, 900px);
  display: flex;
  align-items: center;
  padding-block: clamp(64px, 9vw, 120px);
  overflow: hidden;
}

.sma-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.sma-hero__bg img,
.sma-hero__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
/* Das Standbild liegt darunter und bleibt stehen, wenn das Video
   nicht lädt, nicht laufen darf oder gar nicht erst angefordert wird. */
.sma-hero__bg img { position: absolute; inset: 0; }
.sma-hero__bg video { position: relative; opacity: 0; transition: opacity 900ms var(--ease-soft); }
.sma-hero__bg video.is-playing { opacity: 1; }

.sma-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg,
      rgba(243, 235, 224, 0.97) 0%,
      rgba(243, 235, 224, 0.92) 34%,
      rgba(243, 235, 224, 0.62) 56%,
      rgba(243, 235, 224, 0.28) 78%,
      rgba(243, 235, 224, 0.16) 100%);
}
@media (max-width: 899px) {
  .sma-hero__veil {
    background: linear-gradient(180deg,
      rgba(243, 235, 224, 0.72) 0%,
      rgba(243, 235, 224, 0.93) 42%,
      rgba(243, 235, 224, 0.97) 100%);
  }
}

.sma-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  width: 100%;
}
@media (min-width: 900px) {
  .sma-hero__inner { grid-template-columns: 7fr 5fr; }
}

.sma-hero__marks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.sma-hero__mark {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--ink-soft);
}
.sma-hero__mark--star { color: var(--accent); }
.sma-hero__dot { width: 4px; height: 4px; background: var(--rule); border-radius: 50%; }

.sma-hero__title {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: -0.018em;
  margin: 0 0 clamp(22px, 3vw, 34px);
}
/* Zeilenweiser Aufzug hinter einer Maske: die Zeile steigt aus dem
   Papier, statt einzublenden. */
.sma-hero__title .sma-line { display: block; overflow: hidden; }
.sma-hero__title .sma-line > span { display: block; }
.sma-hero__title em {
  font-style: italic;
  color: var(--accent);
}

.sma-hero__lead { margin-bottom: clamp(28px, 3.5vw, 40px); }

.sma-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.sma-hero__note {
  font-size: var(--fs-small);
  color: var(--ink-soft);
  margin: 0;
}

.sma-hero__media { position: relative; }
.sma-hero__portrait { max-width: 460px; margin-inline: auto; }
@media (max-width: 899px) { .sma-hero__portrait { max-width: 340px; } }

/* ═══════════════════════════════════════════════════════════
   8 · VERSBAND
   ═══════════════════════════════════════════════════════════ */

.sma-verse {
  position: relative;
  isolation: isolate;
  text-align: center;
  overflow: hidden;
}
.sma-verse::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("assets/img/verse-texture.webp");
  background-size: cover;
  background-position: center;
  opacity: 0.34;
}
.sma-verse__lines {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--fs-quote);
  line-height: 1.42;
  letter-spacing: -0.004em;
  color: var(--ink);
  max-width: 22ch;
  margin-inline: auto;
}
.sma-verse__lines span { display: block; }
.sma-verse__lines em { font-style: italic; color: var(--accent); }
.sma-verse__star {
  display: block;
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: clamp(20px, 3vw, 32px);
}

/* ═══════════════════════════════════════════════════════════
   9 · ÜBER MICH
   ═══════════════════════════════════════════════════════════ */

/* Die Bildspalte klebt, während die Kapitel an ihr vorbeiziehen.
   Ohne das zentriert das Raster ein 700px hohes Bild neben 1900px Text
   und lässt oben wie unten eine leere Halbseite stehen. */
.sma-ueber__media { position: relative; }
@media (min-width: 900px) {
  .sma-ueber__media {
    align-self: start;
    position: sticky;
    top: 108px;
  }
}
.sma-ueber__portrait { max-width: 520px; }

/* Am Handy soll Sabine früh im Bild sein: Wer über Instagram kommt,
   sucht die Person, nicht den Lebenslauf. Ohne diese Umordnung steht
   das Porträt hinter fünf Kapiteln, rund 2000px unter der Falte.
   Die Textspalte wird zu `display: contents` aufgelöst, damit ihre
   Teile eigene Rasterkinder werden und sich um das Bild ordnen lassen —
   dasselbe Mittel wie im Kontaktband des ersten Themes. */
@media (max-width: 899px) {
  .sma-ueber .sma-split { row-gap: clamp(26px, 6vw, 44px); }
  .sma-ueber__body      { display: contents; }
  .sma-ueber__intro     { order: 1; }
  .sma-ueber__media     { order: 2; }
  .sma-ueber__chapters  { order: 3; }
  .sma-ueber__closing   { order: 4; margin-top: 0 !important; }
}
/* Kein Ueberlappen mehr (Stefan, 27. August 2026): zwei Bilder, die
   einander ueberschneiden, verdecken beide etwas, und die Bildunter-
   schrift lag halb auf dem Foto. Jetzt steht der Schreibtisch darunter,
   nach rechts versetzt — Versatz statt Ueberlagerung. */
.sma-ueber__still {
  max-width: 400px;
  width: 78%;
  margin-top: clamp(18px, 2.2vw, 30px);
  margin-left: auto;
  border: 1px solid var(--rule-soft);
}
@media (max-width: 899px) {
  .sma-ueber__still { max-width: 300px; width: 70%; }
}

.sma-ueber__chapters {
  margin-top: clamp(28px, 4vw, 44px);
  display: grid;
  gap: 0;
}
.sma-ueber__chapter {
  padding: clamp(20px, 2.6vw, 28px) 0;
  border-top: 1px solid var(--rule-soft);
}
.sma-ueber__chapter:last-child { border-bottom: 1px solid var(--rule-soft); }
.sma-ueber__chapter h3 { margin-bottom: 14px; }
.sma-ueber__chapter p { color: var(--text-muted); margin: 0; max-width: var(--max-prose); }
.sma-ueber__chapter p + p { margin-top: 1.05em; }

/* Ein Satz, der die ganze Seite in zwei Zeilen traegt, gehoert nicht in
   den Fliesstext. Haarlinien statt Anfuehrungszeichen — dieselbe
   Grammatik wie die Kapitel selbst. */
.sma-ueber__pull {
  margin: clamp(26px, 3.2vw, 40px) 0;
  padding-block: clamp(18px, 2.2vw, 26px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  line-height: 1.34;
  color: var(--ink);
  max-width: var(--max-prose);
}

.sma-ueber__signature {
  margin-top: clamp(18px, 2.2vw, 26px);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1875rem;
  color: var(--accent);
}

.sma-sign {
  margin-top: clamp(28px, 4vw, 40px);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════
   10 · ANGEBOTE

   Volle Zeilen mit Haarlinie, von Zeile zu Zeile gespiegelt — kein
   Dreier-Kartenraster. Zwei gleiche Raster auf einer Seite lesen sich
   als ausgefüllte Vorlage, egal wie gut der Text ist.
   ═══════════════════════════════════════════════════════════ */

/* Luft zwischen Vorspann und erster Haarlinie: ohne sie klebt die Linie
   unter dem letzten Satz und liest sich als Unterstreichung. */
.sma-offers {
  display: grid;
  gap: 0;
  margin-top: clamp(40px, 5vw, 76px);
}

.sma-offer {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding-block: clamp(40px, 5.5vw, 72px);
  border-top: 1px solid var(--rule-soft);
}
.sma-offer:last-child { border-bottom: 1px solid var(--rule-soft); }

@media (min-width: 860px) {
  /* Das Bild bekommt in jeder Zeile die größere Hälfte, auch in der
     gespiegelten — sonst springt die Bildgröße von Zeile zu Zeile und
     die Spiegelung liest sich als Unfall statt als Rhythmus. */
  .sma-offer { grid-template-columns: 5fr 7fr; }
  .sma-offer--mirror { grid-template-columns: 7fr 5fr; }
  /* Gespiegelte Zeilen brauchen eine ausdrückliche Zeilenangabe: sonst
     steht der Rastercursor nach der Textspalte hinter Spalte 2 und das
     Bild macht eine zweite Zeile auf. Beide Kinder: grid-row 1. */
  .sma-offer--mirror .sma-offer__media { grid-column: 1; grid-row: 1; }
  .sma-offer--mirror .sma-offer__body  { grid-column: 2; grid-row: 1; }
  .sma-offer:not(.sma-offer--mirror) .sma-offer__media { grid-column: 2; grid-row: 1; }
  .sma-offer:not(.sma-offer--mirror) .sma-offer__body  { grid-column: 1; grid-row: 1; }

  /* Die Leitzeile bricht das Paar auf: Bild über die volle Breite, Text
     darunter auf Lesemaß. Ihr Gewicht kommt aus der Fläche, nicht aus
     einem eigenen Farbgrund — Kartenfüllungen kennt diese Seite nicht.
     Muss nach den Regeln oben stehen: gleiche Spezifität, spätere Regel
     gewinnt. */
  .sma-offer--lead { grid-template-columns: 1fr; }
  /* `.sma-offer.sma-offer--lead` und nicht `.sma-offer--lead`: die Regel
     darüber trägt mit `.sma-offer:not(.sma-offer--mirror) .sma-offer__media`
     drei Klassen. Zwei Klassen verlieren dagegen, egal wie weit hinten
     sie stehen — die Leitzeile bliebe zweispaltig. */
  .sma-offer.sma-offer--lead .sma-offer__media,
  .sma-offer.sma-offer--lead .sma-offer__body { grid-column: 1; grid-row: auto; }
}

/* — Die Leitzeile: das eine Angebot mit langem Text — */
.sma-offer--lead .sma-offer__media img {
  width: 100%;
  height: clamp(200px, 28vw, 380px);
  object-fit: cover;
}
.sma-offer--lead .sma-offer__body { max-width: 64ch; }
.sma-offer--lead h3 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  margin-bottom: 0;
}

.sma-offer__claim { margin-top: 14px; color: var(--accent); }

.sma-offer__prose { margin-top: clamp(20px, 2.4vw, 30px); }
.sma-offer__prose p { color: var(--text-muted); margin: 0; max-width: var(--max-prose); }
.sma-offer__prose p + p { margin-top: 1.05em; }
.sma-offer__prose strong { color: var(--ink); font-weight: 600; }

/* Der Dreiklang: die eine laute Stelle des Abschnitts. Haarlinien oben
   und unten, kein Akzentbalken links — die Seite kennt Linien, keine
   Schienen. */
.sma-offer__triad {
  margin: clamp(28px, 3.4vw, 42px) 0;
  padding-block: clamp(20px, 2.4vw, 30px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  line-height: 1.36;
  letter-spacing: -0.006em;
  color: var(--ink);
}
.sma-offer__triad span { display: block; }
.sma-offer__triad em { font-style: italic; color: var(--accent); }

.sma-offer__media img {
  width: 100%;
  border: 1px solid var(--rule-soft);
}
.sma-offer__body h3 { margin-bottom: 12px; font-size: var(--fs-h3); }
.sma-offer__body p { color: var(--text-muted); max-width: 46ch; }
.sma-offer__foot {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

/* Der Energieausgleich steht als Notiz unter der Reihe, nicht als
   Preistafel: für die Begleitung gibt es bewusst keine Beträge. */
.sma-offers__note {
  margin-top: clamp(28px, 3.5vw, 40px);
  font-size: var(--fs-small);
  color: var(--ink-soft);
  max-width: 54ch;
}

/* ═══════════════════════════════════════════════════════════
   11 · ABLAUF — die Tuschewolke am Scroll

   48 WebP-Frames auf einem Canvas, die Bildnummer hängt scrubbend am
   Scroll. Drei Beats blenden nacheinander, nie gleichzeitig.
   ═══════════════════════════════════════════════════════════ */

.sma-flow {
  position: relative;
  background: var(--paper-deep);
}
.sma-flow__track { height: 380vh; }
@media (max-width: 1023px) { .sma-flow__track { height: 320vh; } }

.sma-flow__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.sma-flow__figure {
  position: absolute;
  inset: 0;
  z-index: 0;
}
/* Standbild und Canvas liegen übereinander, nicht untereinander.
   Ohne `position: absolute` belegt das Standbild weiter seinen Platz im
   Fluss — auch mit Deckkraft 0 — und schiebt das Canvas exakt um eine
   Bühnenhöhe nach unten, aus dem `overflow: hidden` heraus. Die Szene
   war dadurch leer, obwohl das Canvas korrekt zeichnete. */
.sma-flow__figure canvas,
.sma-flow__figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Ohne diese Zeile gewinnt das `display: block` oben gegen das
   `[hidden] { display: none }` des Browsers: das leere Canvas läge dann
   von Anfang an über dem Standbild und die ganze Szene wäre eine leere
   Fläche. Genau das ist beim ersten Durchgang passiert. */
.sma-flow__figure canvas[hidden] { display: none; }

.sma-flow__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* 100deg, nicht 260deg: der Winkel zeigt die Richtung, in die der
     Verlauf *läuft*. Bei 260deg liegt die deckende Seite rechts — also
     über der Tuschewolke — und die freie links, wo der Text steht.
     Genau verkehrt herum; die Szene war dadurch eine leere Fläche. */
  background: linear-gradient(100deg,
    rgba(232, 220, 203, 0.96) 0%,
    rgba(232, 220, 203, 0.9) 30%,
    rgba(232, 220, 203, 0.35) 58%,
    rgba(232, 220, 203, 0.05) 100%);
}
@media (max-width: 1023px) {
  .sma-flow__veil {
    background: linear-gradient(180deg,
      rgba(232, 220, 203, 0.1) 0%,
      rgba(232, 220, 203, 0.72) 46%,
      rgba(232, 220, 203, 0.97) 100%);
  }
}

.sma-flow__copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sma-flow__beats {
  position: relative;
  max-width: 32rem;
}
@media (max-width: 1023px) {
  .sma-flow__stage { align-items: end; }
  .sma-flow__copy { padding-bottom: clamp(40px, 9vh, 90px); }
  .sma-flow__beats { max-width: none; }
}

.sma-flow__beat {
  grid-area: 1 / 1;
}
.sma-flow__beats { display: grid; }
.sma-flow__beat h2 { margin-bottom: 14px; }
.sma-flow__beat p { color: var(--text-muted); max-width: 40ch; }
.sma-flow__beat--2, .sma-flow__beat--3 { opacity: 0; }

/* Ohne JS, ohne Bewegungswunsch oder auf einer sparsamen Verbindung
   bleibt das Standbild und die Beats stehen untereinander. */
.sma-flow--static .sma-flow__track { height: auto; }
.sma-flow--static .sma-flow__stage { position: relative; height: auto; padding-block: var(--band-y); }
.sma-flow--static .sma-flow__figure { position: relative; height: clamp(280px, 46vh, 520px); }
.sma-flow--static .sma-flow__beats { display: block; }
.sma-flow--static .sma-flow__beat { opacity: 1 !important; margin-bottom: 34px; }
.sma-flow--static .sma-flow__beat:last-child { margin-bottom: 0; }
.sma-flow--static .sma-flow__copy { padding-top: clamp(32px, 5vw, 56px); }
.sma-flow--static .sma-flow__veil { display: none; }

/* ═══════════════════════════════════════════════════════════
   12 · ZITATBAND
   ═══════════════════════════════════════════════════════════ */

.sma-quote { text-align: center; }
.sma-quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--fs-quote);
  line-height: 1.36;
  max-width: 24ch;
  margin-inline: auto;
}
.sma-quote cite {
  display: block;
  margin-top: clamp(20px, 3vw, 30px);
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: rgba(243, 235, 224, 0.66);
}

/* ═══════════════════════════════════════════════════════════
   13 · SHOP-BAND
   ═══════════════════════════════════════════════════════════ */

.sma-shop__worlds {
  display: grid;
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
  margin-top: clamp(32px, 4vw, 48px);
}
@media (min-width: 760px) { .sma-shop__worlds { grid-template-columns: repeat(3, 1fr); } }

.sma-shop__world {
  background: var(--paper);
  padding: clamp(24px, 3vw, 34px);
}
.sma-shop__world h3 { font-size: 1.375rem; margin-bottom: 10px; }
.sma-shop__world p { color: var(--text-muted); font-size: var(--fs-small); margin: 0; }
.sma-shop__world .sma-spec { display: block; margin-bottom: 14px; color: var(--accent); }

.sma-shop__foot {
  margin-top: clamp(28px, 3.5vw, 40px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}

/* ═══════════════════════════════════════════════════════════
   14 · KONTAKT
   ═══════════════════════════════════════════════════════════ */

.sma-kontakt__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
@media (min-width: 960px) {
  .sma-kontakt__inner { grid-template-columns: 5fr 7fr; }
}

.sma-kontakt__facts {
  margin-top: clamp(28px, 3.5vw, 40px);
  display: grid;
  gap: 0;
}
.sma-kontakt__fact {
  padding: 16px 0;
  border-top: 1px solid rgba(243, 235, 224, 0.18);
}
.sma-kontakt__fact:last-child { border-bottom: 1px solid rgba(243, 235, 224, 0.18); }
.sma-kontakt__fact dt {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: rgba(243, 235, 224, 0.6);
  margin-bottom: 5px;
}
.sma-kontakt__fact dd { margin: 0; color: var(--paper); font-size: var(--fs-small); }

/* — Formular auf hellem Papier im dunklen Band — */
.sma-form {
  background: var(--paper-light);
  color: var(--ink);
  padding: clamp(26px, 3.4vw, 44px);
}

/* Die Karte ist eine helle Insel im dunklen Band und muss dessen
   Invertierung zurücknehmen. Ohne das bekommt der Absendeknopf die
   Fassung „hell auf dunkel" — eine papierfarbene Fläche auf papier-
   farbenem Grund, also gar keinen Knopf. */
.sma-band--ink .sma-form .sma-btn--primary {
  background: var(--ink);
  color: var(--paper-light);
}
.sma-band--ink .sma-form .sma-btn--primary:hover {
  background: var(--accent);
  color: var(--paper-light);
}
.sma-band--ink .sma-form a { color: var(--link); }
.sma-band--ink .sma-form a:hover { color: var(--ink); }
.sma-form__row { margin-bottom: 20px; }
.sma-form label {
  display: block;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.sma-form input,
.sma-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 13px 15px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  transition: border-color 220ms var(--ease-soft), background-color 220ms var(--ease-soft);
}
.sma-form textarea { min-height: 132px; resize: vertical; }
.sma-form input:focus,
.sma-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--paper-light);
}
.sma-form input[aria-invalid="true"],
.sma-form textarea[aria-invalid="true"] { border-color: var(--burgundy); }

.sma-form__err {
  display: block;
  margin-top: 7px;
  font-size: var(--fs-label);
  color: var(--burgundy);
}
.sma-form__hp {
  position: absolute; left: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}
.sma-form__submit { width: 100%; }
.sma-form__legal {
  margin-top: 16px;
  font-size: var(--fs-label);
  color: var(--ink-soft);
  line-height: 1.6;
}

.sma-form__done {
  text-align: center;
  padding: clamp(20px, 3vw, 34px) 0;
}
.sma-form__done h3 { margin-bottom: 10px; }
.sma-form__done p { color: var(--text-muted); margin: 0; }

/* Was nach dem Absenden passiert — der Ablauf, den die Seite
   tatsächlich zusagen kann. */
.sma-next {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: var(--fs-label);
  color: var(--ink-soft);
}
.sma-next span { display: inline-flex; align-items: center; gap: 8px; }
.sma-next span::before { content: "→"; color: var(--accent); }
.sma-next span:first-child::before { content: "✦"; }

/* ═══════════════════════════════════════════════════════════
   15 · FUSSZEILE
   ═══════════════════════════════════════════════════════════ */

.sma-footer {
  position: relative;
  z-index: 1;
  background: var(--paper-deep);
  padding-top: clamp(56px, 7vw, 92px);
}
.sma-footer__grid {
  max-width: var(--max-content);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 56px);
}
@media (min-width: 760px) {
  .sma-footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}
.sma-footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  color: var(--accent);
}
.sma-logo-icon svg { width: 46px; height: auto; display: block; }
.sma-footer__brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
}
.sma-footer__tagline {
  color: var(--text-muted);
  font-size: var(--fs-small);
  max-width: 40ch;
}
.sma-footer__head {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.sma-footer__grid a {
  display: block;
  padding: 7px 0;
  font-size: var(--fs-small);
  color: var(--ink);
  text-decoration: none;
}
.sma-footer__grid a:hover { color: var(--accent); }

.sma-footer__bar {
  max-width: var(--max-content);
  margin: clamp(44px, 5vw, 68px) auto 0;
  padding: 22px var(--gutter) 30px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  font-size: var(--fs-label);
  color: var(--ink-soft);
}
.sma-footer__bar a { color: var(--ink-soft); text-decoration: none; }
.sma-footer__bar a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════
   16 · DIE TUSCHELINIE

   Eine gezogene Linie am linken Rand, die sich beim Scrollen selbst
   schreibt und die Kapitel verbindet. Sie ersetzt das Sternenfeld des
   ersten Themes: dort Wetter, hier eine Handschrift.
   ═══════════════════════════════════════════════════════════ */

.sma-inkline {
  position: absolute;
  top: 0;
  left: max(18px, calc((100vw - var(--max-content)) / 2 - 34px));
  width: 60px;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: none;
}
@media (min-width: 1280px) { .sma-inkline { display: block; } }
.sma-inkline svg { width: 100%; height: 100%; }
.sma-inkline path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════════
   17 · BEWEGUNG

   Ein Reveal blendet ein und bleibt. Wer etwas wieder dimmen will,
   muss zuerst nachweisen, dass nie zwei davon gleichzeitig im Bild
   stehen — auf dem kleinsten Gerät, nicht auf dem größten.
   ═══════════════════════════════════════════════════════════ */

/* Ausgeblendet wird nur, was auch wieder eingeblendet werden kann. Die
   Klasse `js` setzt die Kopfzeile, bevor dieses Stylesheet greift —
   ohne JavaScript steht der ganze Text sofort da, statt auf ein Reveal
   zu warten, das nie kommt. */
.js [data-reveal] { opacity: 0; transform: translateY(18px); }
.js .sma-hero__title .sma-line > span { transform: translateY(100%); }

/* Das Standbild der Tuschewolke blendet weg, sobald alle Frames da
   sind — nicht sofort, sonst blitzt ein leeres Canvas auf. */
.sma-flow__figure img { transition: opacity 420ms var(--ease-soft); }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .js .sma-hero__title .sma-line > span { transform: none !important; }
  .sma-hero__bg video { display: none; }
  .sma-aura::before { display: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ═══════════════════════════════════════════════════════════
   18 · EINZELSEITEN (Impressum, Datenschutz)
   ═══════════════════════════════════════════════════════════ */

.sma-page { padding-block: clamp(56px, 8vw, 120px); }
.sma-page__inner { max-width: 68ch; margin-inline: auto; padding-inline: var(--gutter); }
.sma-page h1 { margin-bottom: clamp(24px, 3vw, 36px); }
.sma-page h2, .sma-page h3 { margin-top: 1.8em; margin-bottom: 0.5em; }
.sma-page ul, .sma-page ol { padding-left: 1.25em; color: var(--text-muted); }
.sma-page li { margin-bottom: 0.5em; }

/* ═══════════════════════════════════════════════════════════
   19 · DRUCK
   ═══════════════════════════════════════════════════════════ */

@media print {
  body::before, .sma-hero__bg, .sma-inkline, .sma-header { display: none !important; }
  .sma-band--ink { background: #fff !important; color: #000 !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
