/* ------------------------------------------------------------------
   Maximalismus – neues Design (projekt-maximalismus.html)
   Baut auf wgwm.css auf (gleiche Bausteine, Animationen, Hover).
   Hier stehen nur die Maße laut „Stränge PDF/Maximalismus.pdf“ (1920 × 10171 px).
   --u = 1 px des Entwurfs. Klassen beginnen mit "mx-".
------------------------------------------------------------------- */
.mx { overflow-x: clip; --mx-red: #FF1A1D; --mx-light: #FCFBFC; }
/* Proportional auch über 1920 px (wie Making Mistakes): --u skaliert mit der vollen Fensterbreite,
   sonst bleibt alles 1920 px breit und klebt links (Mockups, Designelemente) */
.mx { --u: calc(100vw / 1920); }

/* Hero: füllt den ersten Bildschirm (wn-hero--full). Navi laut PDF dunkel (kein data-dark),
   Verlauf unten etwas schwächer als bei WGWM, damit die Collage bunt bleibt.
   Titel immer in einer Zeile: schrumpft, wenn die Breite nicht reicht („MAXIMALISMUS“ ≈ 8,6 × Schriftgröße) */
.mx-hero .wn-hero__title { white-space: nowrap; font-size: min(max(72px, 175.68 * var(--u)), (100vw - 2 * var(--edge)) / 8.8); }
.mx-hero::after { background: linear-gradient(to top, rgba(0,0,0,.6) 0%, rgba(0,0,0,.3) 24%, rgba(0,0,0,0) 50%); }

/* Herausforderung */
.mx-challenge { padding-top: max(48px, 100 * var(--u)); padding-bottom: max(48px, 120 * var(--u)); }

/* Lösung: Laptop (1013 breit) + Handy (266 breit, 815 rechts vom Laptop-Anfang, 115 tiefer) als Gruppe mittig.
   Die Lavendel-Fläche der Herausforderung läuft hinter den Mockups weiter und blendet bis zur
   Laptop-Unterkante nach Weiß aus (wie Making Mistakes); darunter Label, Headline und Unterzeile in Lavendel */
.mx-solution {
  padding-top: calc(60 * var(--u));
  background: linear-gradient(to bottom, var(--lavender) 0, var(--lavender) calc(260 * var(--u)), #fff calc(660 * var(--u)));
}
.mx-devices { position: relative; width: calc(1081 * var(--u)); height: calc(622 * var(--u)); margin-inline: auto; }
.wn-case .mx-devices__phone, .mx-devices__laptop { position: absolute; }
.wn-case .mx-devices img { height: auto; }
.wn-case .mx-devices__laptop { left: 0; top: 0; width: calc(1013 * var(--u)); }

/* Laptop mit Video: Maße in % des Laptop-Bilds (Original 3210 × 1950 px)
   Bildschirm x 327 / y 68 / 2560 × 1664, Notch x 1449 / y 68 / 316 breit.
   Das Video füllt den ganzen Bildschirm (16:9 auf 16:10 → links/rechts minimal beschnitten). */
.wn-case .mx-laptop__body { display: block; width: 100%; }
.mx-laptop__screen {
  position: absolute; left: 10.187%; top: 3.487%; width: 79.751%; height: 85.333%;
  overflow: hidden; background: #FCFBFC;
  border-radius: .8% .8% 0 0 / 1.2% 1.2% 0 0;
}
.wn-case .mx-laptop__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%; background: #FCFBFC;
}
.wn-case .mx-laptop__notch { position: absolute; left: 45.14%; top: 3.487%; width: 9.844%; z-index: 1; }
.wn-case .mx-devices__phone  { left: calc(815 * var(--u)); top: calc(115 * var(--u)); width: calc(266 * var(--u)); z-index: 1; }
.mx-solution__text { position: relative; z-index: 2; padding-inline: var(--edge); color: var(--lavender); }
.mx-solution__text .wn-display { margin-top: max(6px, 20 * var(--u)); }
.mx-solution__sub { max-width: 46em; line-height: 1.35; } /* längerer Text: auf Lesebreite begrenzt */

/* Wohnzimmer: Bildschirmaufnahme 1920 × 1082 randlos, im Originalformat (nichts beschnitten) */
.mx-room { position: relative; aspect-ratio: 1920 / 1082; overflow: hidden; margin-top: calc(255 * var(--u)); background: #e9e1d6; }
.wn-case .mx-room__video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------------
   Designelemente – vier Spalten (x 58 / 686 / 1172 / 1656)
------------------------------------------------------------------- */
.mx-elements { margin-top: calc(350 * var(--u)); padding-left: calc(58 * var(--u)); padding-right: var(--edge); }
.mx-elements__title { margin: 0 0 0 calc(-11 * var(--u)); font-size: max(36px, 100 * var(--u)); line-height: 1; }
.mx-elements__grid {
  display: grid; grid-template-columns: calc(628 * var(--u)) calc(486 * var(--u)) calc(484 * var(--u)) 1fr;
  margin-top: max(28px, 100 * var(--u));
}
.mx-col > * { margin: 0; }
.mx-col__label { margin-bottom: max(20px, 75 * var(--u)) !important; font-size: max(13px, 20 * var(--u)); font-weight: 300; color: #8a8a8a; }

/* Schriften */
.mx-col--type { color: var(--mx-red); }
.mx-type__name { font-size: max(13px, 20 * var(--u)); font-weight: 300; }
.mx-type__name--2 { margin-top: max(24px, 70 * var(--u)) !important; }
.mx-type__bricolage { margin-top: max(4px, 8 * var(--u)) !important; font-family: "Bricolage Grotesque", var(--font); font-weight: 700; font-size: max(30px, 63.7 * var(--u)); line-height: 1.1; letter-spacing: -0.01em; }
.mx-type__funnel { margin-top: max(4px, 10 * var(--u)) !important; font-family: "Funnel Sans", var(--font); font-weight: 500; font-size: max(22px, 40 * var(--u)); line-height: 1.15; }
.mx-type__copy { margin-top: max(6px, 12 * var(--u)) !important; max-width: 22em; font-family: "Funnel Sans", var(--font); font-size: max(13px, 20 * var(--u)); line-height: 1.25; }

/* Farben */
.mx-swatch { display: flex; align-items: flex-start; gap: calc(36 * var(--u)); }
.mx-swatch + .mx-swatch { margin-top: max(20px, 52 * var(--u)); }
.mx-swatch__chip { flex: none; width: max(64px, 140 * var(--u)); aspect-ratio: 1; background: var(--c); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.mx-swatch__chip--light { box-shadow: 0 calc(4 * var(--u)) calc(18 * var(--u)) rgba(0,0,0,.12); }
.mx-swatch:hover .mx-swatch__chip { transform: rotate(-4deg) scale(1.04); }
.mx-swatch p { margin: 0; font-family: "Funnel Sans", var(--font); font-size: max(13px, 20 * var(--u)); line-height: 1.25; color: var(--mx-red); }
.mx-swatch strong { display: block; margin-bottom: max(2px, 6 * var(--u)); font-family: "Bricolage Grotesque", var(--font); font-size: max(22px, 38.6 * var(--u)); line-height: 1; }

/* Icons/Microanimationen: Button füllt sich beim Hovern, Sanduhr dreht sich in Abständen um */
.mx-col--icons { display: flex; flex-direction: column; align-items: flex-start; }
.mx-col--icons .mx-col__label { align-self: stretch; }
.mx-btn {
  display: inline-block; margin-left: calc(36 * var(--u)) !important;
  padding: .36em .95em .4em;
  border: max(3px, .17em) solid var(--mx-red); border-radius: 999px;
  font-family: "Bricolage Grotesque", var(--font); font-weight: 700; font-size: max(16px, 25.5 * var(--u)); line-height: 1.1;
  color: var(--mx-red); background: var(--mx-light);
  cursor: pointer; user-select: none;
  transition: background-color .25s ease, color .25s ease, transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
}
.mx-btn:hover, .mx-btn:focus-visible {
  background: var(--mx-red); color: var(--mx-light); outline: none;
  transform: scale(1.06) rotate(-2deg);
  box-shadow: 0 0 0 max(5px, 9 * var(--u)) rgba(255, 0, 0, .14);
}
.wn-case .mx-hourglass {
  width: max(52px, 108 * var(--u)); height: auto; margin: max(24px, 70 * var(--u)) 0 0 calc(84 * var(--u)) !important;
}

/* Bilder: wackeln beim Hovern wie aufgehängte Rahmen */
.mx-col--images { display: flex; flex-direction: column; align-items: flex-start; }
.wn-case .mx-wobble { width: max(90px, 154 * var(--u)); height: auto; transform-origin: 50% 0; cursor: pointer; }
.mx-wobble + .mx-wobble { margin-top: max(16px, 40 * var(--u)) !important; }

@media (prefers-reduced-motion: no-preference) {
  .mx-hourglass { animation: mx-flip 4.5s cubic-bezier(.65,0,.35,1) infinite; }
  .mx-wobble:hover { animation: mx-wobble .9s ease-out; }
}
@keyframes mx-flip {
  0%, 40%  { transform: rotate(0deg); }
  50%, 90% { transform: rotate(180deg); }
  100%     { transform: rotate(360deg); }
}
@keyframes mx-wobble {
  0%   { transform: rotate(0); }
  20%  { transform: rotate(-5deg); }
  40%  { transform: rotate(4deg); }
  60%  { transform: rotate(-2.5deg); }
  80%  { transform: rotate(1deg); }
  100% { transform: rotate(0); }
}

/* Prozess: mehr Abstand zu den Designelementen; Moodboard etwas breiter als die WGWM-Bilder */
.mx-process { margin-top: calc(520 * var(--u)); }
.mx-process .wn-step__media img { width: calc(834 * var(--u)); }
/* Scribbles: Anordnung nach Vorlage (Fläche 1102 × 630 Entwurfs-px), Positionen in % der Fläche.
   Wohnzimmer vorne links unten und leicht über der Startseite, Notizen rechts daneben (oben bündig). */
.mx-process .mx-scribbles { display: block; position: relative; width: calc(1102 * var(--u)); aspect-ratio: 1102 / 630; }
.wn-case .mx-process .mx-scribbles img { position: absolute; height: auto; }
.wn-case .mx-scribbles img.mx-scribbles__room  { left: 0;      bottom: 0;   width: 39.3%;  z-index: 1; background: var(--plum-dark); } /* deckt die Startseite dahinter ab */
.wn-case .mx-scribbles img.mx-scribbles__start { left: 38.05%; top: 0;      width: 39.3%; }
.wn-case .mx-scribbles img.mx-scribbles__notes { left: 82.85%; top: 1.3%;   width: 17.15%; }

/* ------------------------------------------------------------------
   Mobil – im PDF nicht definiert, aus dem Desktop-Entwurf abgeleitet
------------------------------------------------------------------- */
@media (max-width: 800px) {
  .mx-challenge { padding-bottom: 32px; }
  .mx-solution { padding-top: 16px; background: linear-gradient(to bottom, var(--lavender) 0, var(--lavender) 30%, #fff 62%); }
  .mx-devices { width: auto; height: auto; aspect-ratio: 1 / .6; margin-inline: var(--gutter); }
  .wn-case .mx-devices__laptop { left: 0; width: 80%; }
  .wn-case .mx-devices__phone  { left: 74%; top: 9%; width: 22%; }
  .mx-solution__text { margin-top: 16px; }

  .mx-room { margin-top: 72px; }

  .mx-elements { margin-top: 88px; padding-left: var(--edge); }
  .mx-process { margin-top: calc(110px + 100vw * 140 / 1920); }
  .mx-elements__title { margin-left: 0; }
  .mx-elements__grid { grid-template-columns: 1fr 1fr; gap: 48px 24px; }
  .mx-col--type { grid-column: 1 / -1; }
  .mx-swatch { flex-direction: column; gap: 10px; }
  .mx-btn { margin-left: 0 !important; }
  .mx-hourglass { margin-left: 24px !important; }

  .mx-process .wn-step__media img { width: 100%; }
  .mx-process .mx-scribbles { width: 100%; }
}
