/* ==========================================================
   PRVA Markenrelaunch — Präsentation
   ========================================================== */

@font-face {
  font-family: "Canela";
  src: url("Canela Font/Canela-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Canela";
  src: url("Canela Font/Canela-Black.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}

:root {
  --blue: #0059AD;
  --blue-75: #407DBF;
  --blue-50: #80ACD6;
  --blue-25: #BFD6EA;
  --blue-10: #E6EEF7;
  --grey: #EBEBE8;
  --ink: #111111;
  --backdrop: #0d0f12;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { height: 100%; }

body {
  height: 100%;
  background: var(--backdrop);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  overflow: hidden;
}

.canela { font-family: "Canela", Georgia, serif; font-weight: 700; }

/* ---------- Scroll-Container & Snap ---------- */

#deck {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
#deck::-webkit-scrollbar { display: none; }

.slide {
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- 16:9 Frame ---------- */

.frame {
  width: min(92vw, calc(89vh * 16 / 9));
  aspect-ratio: 16 / 9;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  position: relative;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  padding: 4.2cqw 5cqw;
}

/* ---------- Reveal-Animationen ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(2.2cqw);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.slide.active [data-reveal] {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Kopfzeile der Inhalts-Slides ---------- */

.slide-head { margin-bottom: 2.6cqw; flex: 0 0 auto; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7cqw;
  font-size: 1.05cqw;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.1cqw;
}
.kdot {
  width: 0.85cqw;
  height: 0.85cqw;
  border-radius: 50%;
  background: var(--blue);
  display: inline-block;
}
.kicker--light { color: rgba(255, 255, 255, 0.85); }
.kdot--light { background: #fff; }

.slide-head h2 {
  font-size: 3.6cqw;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.dot-accent { color: var(--blue); }

/* ==========================================================
   01 · Cover
   ========================================================== */

.slide-cover { justify-content: center; }

.cover-inner { position: relative; z-index: 2; }

.cover-logo { width: 16cqw; margin-bottom: 3.4cqw; }

.slide-cover h1 {
  font-size: 7.2cqw;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-bottom: 2.4cqw;
}

.cover-sub {
  font-size: 1.45cqw;
  font-weight: 500;
  color: #555;
  margin-bottom: 0.9cqw;
}

.cover-claim {
  font-size: 1.45cqw;
  font-weight: 600;
  color: var(--blue);
}

/* Hintergrund-Kreise wachsen verzögert, versetzt und mit leichtem Overshoot */
.cover-bg-dot, .idea-bg-dot, .final-bg-dot {
  transform: scale(0);
  transition: transform 1.2s cubic-bezier(0.34, 1.45, 0.64, 1) 0.35s;
}
.cover-bg-dot--2, .idea-bg-dot--2, .final-bg-dot--2 {
  transition-delay: 0.65s;
}
.slide.active .cover-bg-dot,
.slide.active .idea-bg-dot,
.slide.active .final-bg-dot {
  transform: scale(1);
}

.cover-bg-dot {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
}
.cover-bg-dot--1 {
  width: 38cqw; height: 38cqw;
  background: var(--blue);
  top: -14cqw; right: -10cqw;
  opacity: 0.95;
}
.cover-bg-dot--2 {
  width: 26cqw; height: 26cqw;
  background: var(--blue-25);
  bottom: -10cqw; right: 16cqw;
  opacity: 0.75;
}

/* ==========================================================
   02 · Ausgangslage
   ========================================================== */

.cols {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4.5cqw;
  align-items: center;
  flex: 1;
  min-height: 0;
}

.old-logo-stage {
  background: var(--grey);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4cqw;
}
.old-logo-stage img { width: 70%; }

.size-demo {
  display: flex;
  align-items: center;
  gap: 1.6cqw;
  margin-top: 1.6cqw;
  padding: 1.2cqw 1.6cqw;
  border: 1px solid #e2e2de;
  border-radius: 6px;
}
.size-demo-label {
  font-size: 1cqw;
  font-weight: 500;
  color: #777;
  margin-right: 0.6cqw;
}

.point-list { list-style: none; display: flex; flex-direction: column; gap: 2.2cqw; }
.point-list li {
  font-size: 1.35cqw;
  line-height: 1.55;
  color: #444;
  padding-left: 2.2cqw;
  position: relative;
}
.point-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55cqw;
  width: 1cqw;
  height: 1cqw;
  border-radius: 50%;
  background: var(--blue);
}
.point-list strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.45cqw;
  margin-bottom: 0.35cqw;
}

/* ==========================================================
   03 · Metamorphose
   ========================================================== */

.morph-stage {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 3cqw;
  flex: 1;
  min-height: 0;
  padding: 0 4cqw;
}

.morph-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4cqw;
}
.morph-old { width: 46%; opacity: 0.85; }
.morph-new { width: 62%; }
.morph-label {
  font-size: 1cqw;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #999;
}

.morph-line {
  display: flex;
  align-items: center;
  width: 14cqw;
  position: relative;
}
.morph-line-dot {
  width: 1.3cqw; height: 1.3cqw;
  border-radius: 50%;
  background: var(--blue);
  flex: 0 0 auto;
}
.morph-line-track {
  height: 2px;
  background: var(--blue);
  flex: 1;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.4s var(--ease) 0.5s;
}
.slide.active .morph-line-track { transform: scaleX(1); }
.morph-arrow {
  flex: 0 0 auto;
  margin-left: -0.4cqw;
  opacity: 0;
  transition: opacity 0.5s ease 1.7s;
}
.slide.active .morph-arrow { opacity: 1; }

.morph-points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.4cqw;
  flex: 0 0 auto;
  border-top: 1px solid #e8e8e4;
  padding-top: 2.4cqw;
}
.morph-point h3 { font-size: 1.3cqw; font-weight: 600; margin-bottom: 0.6cqw; }
.morph-point p { font-size: 1.08cqw; line-height: 1.55; color: #555; }
.mp-dot {
  display: block;
  width: 1cqw; height: 1cqw;
  border-radius: 50%;
  background: var(--blue);
  margin-bottom: 1cqw;
}

/* ==========================================================
   04 · Markenidee
   ========================================================== */

.slide-idea {
  background: var(--blue);
  color: #fff;
  justify-content: center;
}
.idea-inner { position: relative; z-index: 2; max-width: 78%; }

.idea-text {
  font-size: 3.1cqw;
  line-height: 1.3;
  margin: 2cqw 0 2.6cqw;
}
.idea-claim {
  font-size: 1.4cqw;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--blue-25);
}

.idea-bg-dot { position: absolute; border-radius: 50%; z-index: 1; }
.idea-bg-dot--1 {
  width: 42cqw; height: 42cqw;
  background: rgba(255, 255, 255, 0.07);
  bottom: -18cqw; right: -12cqw;
}
.idea-bg-dot--2 {
  width: 20cqw; height: 20cqw;
  background: rgba(255, 255, 255, 0.1);
  top: -8cqw; right: 14cqw;
}

/* ==========================================================
   05 · Logosystem
   ========================================================== */

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2cqw;
  flex: 1;
  min-height: 0;
}

.logo-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.logo-card h3 {
  font-size: 1.15cqw;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1cqw;
}
.logo-card-stage {
  background: #f7f7f5;
  border: 1px solid #ececea;
  border-radius: 6px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2cqw;
  margin-bottom: 1.1cqw;
  min-height: 0;
}
.logo-card-stage img { width: 82%; max-height: 100%; object-fit: contain; }
.logo-card-stage--stack { flex-direction: column; gap: 2cqw; }
.logo-card p { font-size: 1.02cqw; line-height: 1.5; color: #666; }

/* ==========================================================
   06 · Farbwelt
   ========================================================== */

.frame:has(.color-bottom) { justify-content: space-evenly; }
.frame:has(.color-bottom) .slide-head { margin-bottom: 0; }

.color-section { margin-bottom: 0; }
.color-group-label {
  font-size: 1.1cqw;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 1.4cqw;
}

.swatch-row { display: flex; gap: 3.4cqw; align-items: flex-end; }

.swatch { display: flex; flex-direction: column; gap: 0.3cqw; }
.swatch-circle {
  width: 6cqw; height: 6cqw;
  border-radius: 50%;
  margin-bottom: 0.7cqw;
}
.swatch-circle--big { width: 8cqw; height: 8cqw; }
.swatch-circle--outline { border: 1px solid #ddd; }
.swatch strong { font-size: 1.15cqw; font-weight: 600; }
.swatch em { font-style: normal; font-size: 1cqw; color: #888; }

.color-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4cqw;
}
.color-note {
  font-size: 1.05cqw;
  color: #666;
  margin-top: 1.2cqw;
  max-width: 30cqw;
  line-height: 1.5;
}

/* ==========================================================
   07 · Typografie
   ========================================================== */

.type-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4cqw;
  flex: 1;
  min-height: 0;
}

.type-card {
  background: #f7f7f5;
  border: 1px solid #ececea;
  border-radius: 6px;
  padding: 2.6cqw 3cqw;
  display: flex;
  flex-direction: column;
}
.type-specimen {
  font-size: 7cqw;
  line-height: 1;
  margin-bottom: 1.2cqw;
}
.type-specimen--inter { font-weight: 600; letter-spacing: -0.03em; }
.type-name { font-size: 2.2cqw; margin-bottom: 0.4cqw; }
.type-name--inter { font-family: "Inter", sans-serif; font-weight: 700; }
.type-role { font-size: 1.25cqw; color: var(--blue); font-weight: 600; margin-bottom: 1.4cqw; }

.mini-list { list-style: none; margin-bottom: 1.6cqw; }
.mini-list li {
  font-size: 1.2cqw;
  color: #444;
  padding: 0.4cqw 0 0.4cqw 1.7cqw;
  position: relative;
}
.mini-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.95cqw;
  width: 0.7cqw; height: 0.7cqw;
  border-radius: 50%;
  background: var(--blue);
}

.type-dont {
  margin-top: auto;
  font-size: 1.05cqw;
  line-height: 1.5;
  color: #777;
  border-top: 1px solid #e4e4e0;
  padding-top: 1.2cqw;
}
.type-dont strong { color: var(--ink); }

/* ==========================================================
   08 · Grafische Elemente
   ========================================================== */

.elements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4cqw;
  flex: 1;
  min-height: 0;
}

.element-card { display: flex; flex-direction: column; min-height: 0; }

.element-stage {
  background: #f7f7f5;
  border: 1px solid #ececea;
  border-radius: 6px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4cqw;
  position: relative;
  min-height: 0;
}

.el-dot {
  width: 4.6cqw; height: 4.6cqw;
  border-radius: 50%;
  background: var(--blue);
}
.el-dot--pulse { animation: pulse 3s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.el-dot--overlap { margin-left: -1.8cqw; mix-blend-mode: multiply; opacity: 0.9; }
.el-dot--small { width: 3cqw; height: 3cqw; margin-left: 0.8cqw; }

.el-line { display: flex; align-items: center; width: 70%; }
.el-line-dot {
  width: 1.6cqw; height: 1.6cqw;
  border-radius: 50%;
  background: var(--blue);
  flex: 0 0 auto;
}
.el-line-track {
  height: 2px;
  background: var(--blue);
  flex: 1;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.6s var(--ease) 0.8s;
}
.slide.active .el-line-track { transform: scaleX(1); }

.element-card h3 { font-size: 1.5cqw; font-weight: 600; margin-bottom: 0.6cqw; }
.element-card p { font-size: 1.12cqw; line-height: 1.55; color: #555; }

/* ==========================================================
   09 · Bildsprache
   ========================================================== */

.img-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3cqw;
  flex: 1;
  min-height: 0;
}

.img-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.img-group-label {
  font-size: 1.15cqw;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-bottom: 1.2cqw;
}
.img-group-label--yes { color: var(--blue); }
.img-group-label--no { color: #b04a3a; }

.img-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2cqw;
  height: 16cqw;
  margin-bottom: 1.2cqw;
}
.img-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  min-height: 0;
}
.img-group--no .img-row img { filter: grayscale(0.85); opacity: 0.65; }
.img-group p { font-size: 1.05cqw; line-height: 1.5; color: #666; }

/* ==========================================================
   10 · Social Media
   ========================================================== */

.social-cols {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 3cqw;
  flex: 1;
  min-height: 0;
  align-items: start;
}

.social-cols h3 {
  font-size: 1.15cqw;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.2cqw;
}

.profile-demo {
  display: flex;
  align-items: center;
  gap: 1.6cqw;
  background: #f7f7f5;
  border: 1px solid #ececea;
  border-radius: 6px;
  padding: 1.8cqw;
  margin-bottom: 1.4cqw;
}
.profile-img { width: 6.5cqw; height: 6.5cqw; border-radius: 50%; }
.profile-fake { display: flex; flex-direction: column; gap: 0.3cqw; }
.profile-fake strong { font-size: 1.25cqw; font-weight: 600; }
.profile-fake span { font-size: 1.05cqw; color: #888; }

.social-profile p,
.social-post p { font-size: 1.08cqw; line-height: 1.55; color: #666; }

.social-post { display: flex; flex-direction: column; min-height: 0; }
.post-img {
  width: auto;
  max-width: 100%;
  max-height: 26cqw;
  align-self: flex-start;
  border-radius: 5px;
  margin-bottom: 1.2cqw;
}

/* ==========================================================
   11 · Anwendungsbeispiele
   ========================================================== */

.apps-row {
  display: flex;
  gap: 2cqw;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}

.app-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.app-item--wide { flex: 1.5; }
.app-item img {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: contain;
  object-position: center bottom;
  border-radius: 4px;
}
.app-item figcaption {
  font-size: 1.02cqw;
  font-weight: 500;
  color: #888;
  text-align: center;
  margin-top: 1cqw;
}

/* ==========================================================
   12 · Gestaltungsprinzipien
   ========================================================== */

.principles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2.2cqw;
  flex: 1;
  align-items: center;
}

.principle img { width: 4.2cqw; height: 4.2cqw; margin-bottom: 1.4cqw; }
.principle h3 {
  font-size: 1.3cqw;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.7cqw;
}
.principle p { font-size: 1.08cqw; line-height: 1.55; color: #555; }

/* ==========================================================
   13 · Abschluss
   ========================================================== */

.slide-final {
  justify-content: center;
  align-items: flex-start;
}
.final-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.final-headline {
  font-size: 5.6cqw;
  letter-spacing: -0.01em;
  margin-bottom: 2.6cqw;
}

.final-line {
  display: flex;
  align-items: center;
  width: 30cqw;
  margin-bottom: 3cqw;
}
.final-line::before {
  content: "";
  width: 1.3cqw; height: 1.3cqw;
  border-radius: 50%;
  background: var(--blue);
  flex: 0 0 auto;
}
.final-line i {
  display: block;
  height: 2px;
  background: var(--blue);
  flex: 1;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.6s var(--ease) 0.9s;
}
.slide.active .final-line i { transform: scaleX(1); }

.final-logo { width: 18cqw; margin-bottom: 2cqw; }
.final-claim { font-size: 1.4cqw; font-weight: 600; color: var(--blue); }

.final-bg-dot { position: absolute; border-radius: 50%; z-index: 1; }
.final-bg-dot--1 {
  width: 36cqw; height: 36cqw;
  background: var(--blue);
  right: -8cqw; top: 12cqw;
  opacity: 0.97;
}
.final-bg-dot--2 {
  width: 22cqw; height: 22cqw;
  background: var(--blue-25);
  right: 16cqw; bottom: -8cqw;
  opacity: 0.8;
  mix-blend-mode: multiply;
}

/* ==========================================================
   Navigation / UI
   ========================================================== */

.dots-nav {
  position: fixed;
  right: max(12px, calc((100vw - min(92vw, 89vh * 16 / 9)) / 2 - 34px));
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 10;
}
.dots-nav button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}
.dots-nav button:hover { background: rgba(255, 255, 255, 0.6); }
.dots-nav button.current {
  background: #fff;
  transform: scale(1.45);
}

.slide-counter {
  position: fixed;
  left: 28px;
  bottom: 22px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.55);
  z-index: 10;
  font-variant-numeric: tabular-nums;
}

.credits {
  position: fixed;
  right: 28px;
  bottom: 22px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.32);
  z-index: 10;
}
.credits a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}
.credits a:hover { color: rgba(255, 255, 255, 0.7); }

.scroll-hint {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  z-index: 10;
  transition: opacity 0.6s;
  animation: hint-bob 2.4s ease-in-out infinite;
}
.scroll-hint.hidden { opacity: 0; pointer-events: none; }
@keyframes hint-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(5px); }
}

/* ---------- Reduced Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  .cover-bg-dot, .idea-bg-dot, .final-bg-dot,
  .morph-line-track, .el-line-track, .final-line i {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  #deck { scroll-behavior: auto; }
}
