/* ============================================
   METHODE · die 4 Säulen als 3D-Karussell
   Ohne Klasse (kein JS, reduzierte Bewegung): ruhiges Kartenraster.
   .mf-on (Maus): klebende Bühne, alle Maße in Container-Einheiten der Bühne.
   .mf-swipe (Touch): waagerechte Wischleiste, siehe unten.
   Ablauf in methode-film.js.
   ============================================ */

.mf {
  --mf-accent: #3DBFAF;
  --mf-text: rgba(250, 250, 248, 0.78);
  position: relative;
  padding: 24px 0 128px;
}
.mf-stage {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nur im Karussell sichtbar */
.mf-bg, .mf-dots, .mf-shade, .mf-sheen, .mf-edge { display: none; }

/* ---------- Ruhige Fassung ---------- */
.mf-cam { display: flex; flex-direction: column; }
.mf-intro { text-align: center; margin: 48px 0 64px; }
.mf-intro-title {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(44px, 7vw, 96px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.mf-intro-title span { color: var(--mf-accent); }
.mf-intro-sub { margin: 18px 0 0; color: var(--mf-text); font-size: clamp(16px, 1.6vw, 22px); }

.mf-ring {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 24px;
}

/* ---------- Karte: Licht von oben, Lichtkante oben, Schattenkante unten ---------- */
.mf-tilt { position: relative; height: 100%; }
.mf-face {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 48px 44px 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: linear-gradient(170deg, #31373B 0%, #252A2D 38%, #1D2023 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45),
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 40px 70px -28px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.mf-accent {
  position: absolute;
  top: 0;
  left: 44px;
  right: 44px;
  height: 2px;
  background: var(--mf-accent);
  transform-origin: 0 50%;
}
.mf-step {
  margin: 0 0 28px;
  font-family: var(--f-display);
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #FAFAF8;
}
.mf-step span { font-weight: 500; color: var(--c-muted-dark); }
.mf-title-mask { overflow: hidden; padding-bottom: 0.08em; }
.mf-title {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--mf-accent);
}
.mf-body { display: grid; gap: 12px; margin: 18px 0 28px; }
.mf-body p { margin: 0; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.6; color: var(--mf-text); }
.mf-tags {
  display: block;
  margin-top: auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--c-muted-dark);
}

.mf-claim {
  margin: 96px 0 0;
  overflow: hidden;
  padding-bottom: 0.08em;
  text-align: center;
  font-family: var(--f-display);
  font-size: clamp(30px, 4.4vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.mf-claim-in { display: block; }
.mf-claim em { font-style: normal; color: var(--mf-accent); }

@media (max-width: 600px) {
  .mf-face { padding: 40px 26px 32px; }
  .mf-accent { left: 26px; right: 26px; }
}

/* ============================================
   KARUSSELL
   ============================================ */
.mf.mf-on { height: var(--mf-len, 420svh); padding: 0; }

.mf-on .mf-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  container-type: size;
  background: #161819;
  /* Kartenbreite und -dicke; die Höhe setzt das JS nach dem längsten Text */
  --cw: min(600px, 46cqw);
  --depth: clamp(10px, 1.2cqw, 18px);
  --ch: 70cqh;
}
@media (max-aspect-ratio: 1/1) {
  .mf.mf-on { --mf-len: 460svh; }
  .mf-on .mf-stage { --cw: 80cqw; }
}

.mf-on :is(.mf-bg, .mf-dots, .mf-shade, .mf-sheen, .mf-edge) { display: block; }
.mf-on .mf-cam { display: block; position: absolute; inset: 0; }
.mf-on .mf-cam > * { position: absolute; margin: 0; }

.mf-on .mf-bg {
  inset: 0;
  background: radial-gradient(110% 80% at 50% 50%, #22272A 0%, #181B1C 55%, #0F1112 100%);
}

/* Auftakt */
.mf-on .mf-intro {
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 8cqw;
  pointer-events: none;
}
.mf-on .mf-intro-mask { overflow: hidden; padding-bottom: 1.4cqh; }
.mf-on .mf-intro-title { font-size: min(10cqw, 19cqh); }
@media (max-aspect-ratio: 1/1) {
  .mf-on .mf-intro-title { font-size: 15cqw; }
}
.mf-on .mf-intro-sub { margin-top: 2.4cqh; font-size: clamp(15px, 1.5cqw, 24px); }

/* Bühne: Perspektive außen, der Ring dreht sich in 3D. Deckkraft und Unschärfe
   nur hier außen, am Ring selbst würden sie die Tiefe plattdrücken. */
.mf-on .mf-scene { inset: 0; perspective: var(--persp, 1500px); }
.mf-on .mf-ring {
  display: block;
  left: 50%;
  top: 50%;
  position: absolute;
  width: var(--cw);
  height: var(--ch);
  margin: calc(var(--ch) / -2) 0 0 calc(var(--cw) / -2);
  transform-style: preserve-3d;
}
/* Karte als Körper: Vorderseite und zwei Kanten in einem 3D-Raum. Deckkraft nur an Seite und Kanten,
   an der Karte selbst würde sie die Kanten in die Fläche drücken. */
.mf-on .mf-card, .mf-on .mf-tilt { position: absolute; inset: 0; transform-style: preserve-3d; }
.mf-on .mf-face {
  position: absolute;
  inset: 0;
  height: auto;
  padding: min(48px, 6cqh) min(44px, 3.4cqw) min(40px, 5cqh);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
:is(.mf-on, .mf-swipe) .mf-edge {
  position: absolute;
  top: 8px;
  bottom: 8px;
  width: var(--depth);
  background: linear-gradient(180deg, #2A2F32 0%, #16191B 55%, #0E1011 100%);
}
.mf-on .mf-edge { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.mf-on .mf-edge--l { left: calc(-1 * var(--depth)); transform-origin: 100% 50%; transform: rotateY(-90deg); }
.mf-on .mf-edge--r { right: calc(-1 * var(--depth)); transform-origin: 0 50%; transform: rotateY(90deg); }
/* Lichtschimmer, der beim Drehen über die Fläche wandert (Position: JS) */
:is(.mf-on, .mf-swipe) .mf-sheen {
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: -60%;
  width: 220%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.05) 47%, rgba(255, 255, 255, 0.09) 50%, rgba(255, 255, 255, 0.05) 53%, rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
}
.mf-on .mf-accent { left: min(44px, 3.4cqw); right: min(44px, 3.4cqw); transform: scaleX(0); }
.mf-on .mf-step { margin-bottom: min(28px, 3.4cqh); font-size: clamp(30px, min(3.2cqw, 6cqh), 52px); }
.mf-on .mf-title { font-size: clamp(22px, min(2.4cqw, 4.2cqh), 36px); }
.mf-on .mf-body { margin: min(20px, 2.4cqh) 0 min(28px, 3cqh); }
.mf-on .mf-body p { font-size: clamp(14px, min(1.15cqw, 2cqh), 18px); }
:is(.mf-on, .mf-swipe) .mf-shade {
  position: absolute;
  inset: 0;
  background: #0C0E0F;
  opacity: 0;
  pointer-events: none;
}
@media (max-aspect-ratio: 1/1) {
  .mf-on .mf-face { padding: 7cqw 6cqw 6cqw; }
  .mf-on .mf-accent { left: 6cqw; right: 6cqw; }
  .mf-on .mf-step { font-size: 8.6cqw; margin-bottom: 4.6cqw; }
  .mf-on .mf-title { font-size: 6.2cqw; }
  .mf-on .mf-body { gap: 2.6cqw; margin: 4cqw 0 5cqw; }
  .mf-on .mf-body p { font-size: clamp(13.5px, min(3.8cqw, 2.05cqh), 16px); line-height: 1.55; }
  .mf-on .mf-tags { font-size: 10px; letter-spacing: 0.14em; }
}

/* Schlussbild: Höhe setzt das JS, direkt über die ausgerollten Karten */
.mf-on .mf-claim { left: 6cqw; right: 6cqw; top: 0; font-size: min(5cqw, 8cqh); }
@media (max-aspect-ratio: 1/1) {
  .mf-on .mf-claim { font-size: 9cqw; }
}

/* Wo im Karussell: vier Striche, als Knöpfe mit großer Tippfläche (springen zur Karte) */
.mf-dots { gap: 8px; margin: 0; padding: 0; list-style: none; }
.mf-dots button { display: block; width: 28px; margin: 0; padding: 11px 0; border: 0; background: none; cursor: pointer; }
.mf-dots span { position: relative; display: block; height: 2px; overflow: hidden; background: rgba(250, 250, 248, 0.16); }
.mf-dots i { position: absolute; inset: 0; background: var(--mf-accent); transform: scaleX(0); transform-origin: 0 50%; }
.mf-on .mf-dots { left: 50%; bottom: calc(4cqh - 11px); display: flex; transform: translateX(-50%); }
@media (max-aspect-ratio: 1/1) {
  .mf-on .mf-dots { bottom: calc(3cqh - 11px); }
}

/* ============================================
   WISCHEN (Touch-Geräte)
   Keine festgeklebte Bühne: iPhone-Safari ruckelt dabei (Nachziehen, Adressleiste) und
   zeichnet echte 3D-Karten unsauber. Stattdessen eine waagerechte Wischleiste mit
   Scroll-Snap, eine Karte pro Wisch. Die Nachbarn drehen sich nur mit flachen Transforms
   (perspective() in der Transform, kein 3D-Raum, keine Filter); Werte setzt das JS.
   ============================================ */
.mf.mf-swipe { padding: 0 0 88px; }
.mf-swipe .mf-stage { max-width: none; padding: 0; }
.mf-swipe .mf-intro { order: 1; margin: 40px 24px 20px; }
.mf-swipe .mf-scene { order: 2; }
.mf-swipe .mf-dots { order: 3; display: flex; justify-content: center; }
.mf-swipe .mf-claim { order: 4; margin: 28px 24px 0; }

.mf-swipe .mf-ring {
  --cw: min(78vw, 540px);
  --depth: 10px;
  position: relative;
  display: flex;
  gap: 12px;
  padding: 20px calc((100% - var(--cw)) / 2) 36px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.mf-swipe .mf-ring::-webkit-scrollbar { display: none; }
.mf-swipe .mf-card {
  position: relative;
  flex: 0 0 var(--cw);
  min-width: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
.mf-swipe :is(.mf-shade, .mf-sheen, .mf-edge) { display: block; }
/* Kante zur Mitte hin, wird mit dem Drehwinkel breiter (scaleX: JS) */
.mf-swipe .mf-edge { transform: scaleX(0); }
.mf-swipe .mf-edge--l { left: calc(-1 * var(--depth)); transform-origin: 100% 50%; border-radius: 4px 0 0 4px; }
.mf-swipe .mf-edge--r { right: calc(-1 * var(--depth)); transform-origin: 0 50%; border-radius: 0 4px 4px 0; }
.mf-swipe .mf-dots i { transition: transform 400ms var(--ease); }

/* Text fliegt auf die Karte, sobald sie zu sehen ist (.is-in, einmal): zeitbasiert, ohne Unschärfe-Filter */
.mf-swipe .mf-accent { transform: scaleX(0); transition: transform 700ms var(--ease) 80ms; }
.mf-swipe .mf-title { transform: translate3d(0, 108%, 0); transition: transform 800ms var(--ease) 120ms; }
.mf-swipe .mf-body p { opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity 600ms var(--ease), transform 700ms var(--ease); }
.mf-swipe .mf-body p:nth-child(1) { transition-delay: 260ms; }
.mf-swipe .mf-body p:nth-child(2) { transition-delay: 400ms; }
.mf-swipe .mf-tags { opacity: 0; clip-path: inset(0 100% 0 0); transition: clip-path 700ms var(--ease) 560ms, opacity 0s linear 560ms; }
.mf-swipe .is-in .mf-accent { transform: scaleX(1); }
.mf-swipe .is-in .mf-title { transform: none; }
.mf-swipe .is-in .mf-body p { opacity: 1; transform: none; }
.mf-swipe .is-in .mf-tags { opacity: 1; clip-path: inset(0 0 0 0); }

/* ---------- Kinomodus: solange die Bühne steht, tritt alles andere zurück ---------- */
html.mf-ready .site-header { transition: transform 500ms var(--ease), opacity 400ms var(--ease); }
html.mf-cinema .site-header { transform: translateY(-110%); opacity: 0; pointer-events: none; }
html.mf-cinema :is(.book-bar, .wa-float, .fx-rail, .fx-to-top) { opacity: 0 !important; visibility: hidden; pointer-events: none; }
