/* Präsentation der inaffect AG im Erscheinungsbild von dieci: Schwarz/Weiss, ein Signalrot,
   Helvetica fett/leicht, harte Kanten und Kreise. Jede Folie ist 1920 × 1080 und wird als
   Ganzes auf den Bildschirm skaliert. */
:root {
  --ink: #000000;
  --paper: #ffffff;
  --warm: #e8e5e5;
  --muted: #6b6b6b;
  --accent: #d0021b;
  --font: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
  --ease: cubic-bezier(.1, .79, .25, 1);
  --pad: 112px;
  --foot: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: #141414; font-family: var(--font); font-weight: 300; overflow: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, p, ul, ol, blockquote, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Bühne ---------- */
.deck { position: fixed; left: 50%; top: 50%; width: 1920px; height: 1080px; transform: translate(-50%, -50%) scale(var(--scale, 1)); }
.slide {
  position: absolute; inset: 0; overflow: hidden;
  padding: 150px var(--pad) calc(var(--foot) + 64px);
  display: flex; flex-direction: column; justify-content: center;
  background: var(--paper); color: var(--ink);
  font-size: 34px; line-height: 1.35;
  visibility: hidden; opacity: 0; transition: opacity .45s var(--ease), visibility 0s .45s;
}
.slide.is-active { visibility: visible; opacity: 1; transition: opacity .45s var(--ease); }
.slide--dark { background: var(--ink); color: #fff; }
.slide--accent { background: var(--accent); color: #fff; }

/* Bild über die ganze Folie: Motiv rechts, links bleibt es schwarz für den Text */
.slide__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 6s linear; }
.slide.is-active .slide__bg { transform: none; }
.slide__bg + * { position: relative; }
.slide:has(.slide__bg)::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .86) 38%, rgba(0, 0, 0, 0) 66%), linear-gradient(0deg, rgba(0, 0, 0, .8) 0, rgba(0, 0, 0, 0) 190px),
    radial-gradient(520px 230px at 100% 0, rgba(0, 0, 0, .82), rgba(0, 0, 0, 0));
}
.slide > :not(.slide__bg) { z-index: 2; }

h1, h2, strong, b { font-weight: 700; }
h1 { font-size: 124px; line-height: .98; letter-spacing: -.035em; text-wrap: balance; }
h2 { font-size: 84px; line-height: 1.03; letter-spacing: -.03em; text-wrap: balance; }
.lead { font-size: 40px; line-height: 1.3; color: var(--muted); margin-top: 36px; text-wrap: pretty; }
.lead--tight { margin-top: 28px; }
.lead strong { color: inherit; }
.slide--dark .lead { color: rgba(255, 255, 255, .74); }
.slide--dark .lead strong { color: #fff; }

/* Textspalte links auf den Bildfolien */
.col { position: relative; width: 1010px; }
.col--narrow { width: 900px; }

/* Der Nutzen fürs Geschäft: steht auf jeder Inhaltsfolie an derselben Stelle, mit rotem Punkt */
.gain { position: relative; margin-top: 48px; padding-left: 52px; font-size: 38px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
.gain::before { content: ""; position: absolute; left: 0; top: .28em; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); }
.gain--light::before { background: #fff; }

/* Schrittweise einblenden */
[data-step] { opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
[data-step].is-shown { opacity: 1; transform: none; }

/* ---------- Rahmen: Logo inaffect oben rechts, Fusszeile ---------- */
.mark { position: absolute; top: 56px; right: var(--pad); height: 30px; width: auto; display: block; }
.foot {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 0; height: var(--foot);
  display: flex; align-items: center; gap: 36px;
  border-top: 1px solid rgba(0, 0, 0, .16);
  font-size: 18px; letter-spacing: .01em; color: var(--muted); white-space: nowrap;
}
.foot b { color: var(--ink); }
.foot__copy { margin-left: auto; }
.foot__page { min-width: 56px; text-align: right; font-variant-numeric: tabular-nums; }
.slide--dark .foot, .slide--accent .foot { border-top-color: rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .62); }
.slide--dark .foot b, .slide--accent .foot b { color: #fff; }
.slide--accent .foot { color: rgba(255, 255, 255, .8); }

/* ---------- Titel ---------- */
.cover { justify-content: flex-end; padding-top: 56px; }
.cover__brand { position: absolute; top: 56px; left: var(--pad); height: 104px; width: auto; filter: invert(1); }
.cover__text { position: relative; width: 1120px; }
.cover__meta { position: relative; margin-top: 64px; font-size: 26px; color: rgba(255, 255, 255, .6); }

/* ---------- Zeilen: Stichwort links, Erklärung rechts ---------- */
.rows { margin-top: 48px; border-top: 3px solid currentColor; }
.rows li { display: grid; grid-template-columns: 230px 1fr; gap: 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.rows strong { font-size: 44px; line-height: 1.1; letter-spacing: -.02em; }
.rows span { color: rgba(255, 255, 255, .78); }
.rows--compact { margin-top: 40px; }
.rows--compact li { padding: 18px 0; }
.rows--compact strong { font-size: 38px; }

/* ---------- Ablauf in nummerierten Schritten ---------- */
.flow { margin-top: 44px; position: relative; display: grid; gap: 26px; }
.flow::before { content: ""; position: absolute; left: 35px; top: 36px; bottom: 36px; width: 2px; background: rgba(255, 255, 255, .28); }
.flow li { position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 32px; align-items: center; }
.flow b { width: 72px; height: 72px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-content: center; font-size: 34px; }
.flow li:last-child b { background: var(--accent); color: #fff; }
.flow div { display: grid; gap: 4px; }
.flow strong { font-size: 40px; line-height: 1.15; letter-spacing: -.02em; }
.flow span { color: rgba(255, 255, 255, .76); font-size: 32px; line-height: 1.3; }

/* ---------- Einflussgrössen als Kreise ---------- */
.discs { margin-top: 44px; display: flex; gap: 18px; }
.discs li { width: 168px; height: 168px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); display: grid; place-content: center; text-align: center; font-size: 26px; line-height: 1.15; font-weight: 700; hyphens: manual; padding: 0 12px; }
.discs li:first-child { background: var(--accent); border-color: var(--accent); }

/* ---------- Gesprochener Satz ---------- */
.say { margin-top: 40px; padding: 30px 36px; background: #fff; color: var(--ink); font-size: 44px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; position: relative; width: fit-content; max-width: 100%; }
.say::after { content: ""; position: absolute; left: 48px; top: 100%; border: 16px solid transparent; border-top-color: #fff; border-left-color: #fff; }
.say + .lead { margin-top: 56px; }

/* ---------- Landessprachen ---------- */
.langs { flex-direction: row; align-items: center; gap: 96px; }
.langs__words { flex: none; width: 880px; display: grid; gap: 4px; }
.langs__words li { display: flex; align-items: baseline; gap: 28px; }
.langs__words strong { font-size: 148px; line-height: 1.02; letter-spacing: -.045em; }
.langs__words span { font-size: 26px; color: rgba(255, 255, 255, .82); }
.langs__words li:nth-child(n+2) strong { color: var(--ink); }
.langs__text { flex: 1; display: grid; gap: 32px; }
.langs__text h2 { font-size: 66px; }
.langs__text p { font-size: 34px; }
.langs__text .gain { margin-top: 12px; font-size: 34px; }

/* ---------- Drei Punkte nebeneinander ---------- */
.points { justify-content: flex-start; padding-top: 190px; }
.points h2 { font-size: 120px; position: relative; }
.points ul { margin-top: auto; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 6px solid var(--ink); }
.points li { padding: 44px 44px 0 0; display: grid; gap: 20px; align-content: start; }
.points li + li { padding-left: 44px; border-left: 1px solid var(--warm); }
.points li strong { font-size: 56px; line-height: 1.05; letter-spacing: -.025em; }
.points li span { color: var(--muted); font-size: 32px; }
.disc { position: absolute; border-radius: 50%; background: var(--accent); }
.disc--corner { width: 560px; height: 560px; right: -150px; top: -230px; z-index: 0 !important; }
.points .mark { z-index: 3; }

/* ---------- Schluss ---------- */
.closing { justify-content: space-between; padding-top: 220px; }
.disc--closing { width: 980px; height: 980px; right: -260px; bottom: -330px; }
.closing__text { position: relative; width: 1150px; }
.closing__text h2 { font-size: 124px; }
.closing__contact { position: relative; display: grid; gap: 6px; font-size: 32px; }
.closing__contact strong { font-size: 40px; margin-bottom: 6px; }

/* ---------- Steuerung ---------- */
.hud {
  position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 10;
  display: flex; align-items: center; background: #000; color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18);
  transition: opacity .3s;
}
.hud.is-idle { opacity: 0; }
.hud:hover, .hud:focus-within { opacity: 1; }
.hud button { width: 48px; height: 48px; display: grid; place-content: center; transition: background .2s; }
.hud button:hover { background: var(--accent); }
.hud button:disabled { opacity: .35; cursor: default; background: none; }
.hud__count { min-width: 76px; text-align: center; font-size: 15px; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .7); }
.hud__count b { color: #fff; }
.progress { position: fixed; left: 0; right: 0; top: 0; height: 4px; z-index: 9; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .45s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .slide, .slide.is-active, .slide__bg, [data-step], .progress span { transition: none; }
  .slide__bg { transform: none; }
}

/* ---------- Drucken / als PDF sichern: eine Folie pro Seite ---------- */
@page { size: 1920px 1080px; margin: 0; }
@media print {
  body { overflow: visible; background: none; }
  .deck { position: static; transform: none; width: auto; height: auto; }
  .slide { position: relative; inset: auto; width: 1920px; height: 1080px; visibility: visible; opacity: 1; break-after: page; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .slide__bg { transform: none; }
  [data-step] { opacity: 1; transform: none; }
  .hud, .progress { display: none; }
}
