/* ── Fonts ─────────────────────────────────────────────────── */
@font-face {
  font-family: 'Prompt';
  src: url('fonts/prompt_regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Prompt';
  src: url('fonts/prompt_600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Prompt';
  src: url('fonts/prompt_bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('fonts/open_sans_regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('fonts/open_sans_bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Variablen ──────────────────────────────────────────────── */
:root {
  --pink: #ed008c;
  --pink-hover: #c4007a;
  --dark: #4d4d4d;
  --ice: #9be4e9; /* Hellblau aus dem Flugblatt */
}

/* ── Base ───────────────────────────────────────────────────── */
body {
  background: #fff;
  color: var(--dark);
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 15px;
  margin: 0;
  padding: 0;
}

/* ── Header-Streifen wie auf der Site ───────────────────────── */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--pink);
  padding: 14px 0;
  text-align: center;
}
.logo {
  max-width: 200px;
  height: auto;
}

/* ── Layout ─────────────────────────────────────────────────── */
.page-wrapper {
  min-height: 100vh;
  background: #fff;
  padding-bottom: 60px;
}

/* Sujet – max 960px, zentriert */
.sujet-wrap {
  max-width: 960px;
  margin: 0 auto;
}
.sujet-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Intro ──────────────────────────────────────────────────── */
.intro {
  max-width: 680px;
  margin: 0 auto;
  padding: 36px 24px 8px;
  text-align: center;
}
.form-title {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
  line-height: 1.2;
}
.form-title span.accent {
  color: var(--pink);
}
.title-divider {
  width: 100%;
  max-width: 300px;
  border: none;
  border-top: 1px solid #000;
  margin: 16px auto 24px;
  opacity: 1;
}
.event-date {
  font-family: 'Prompt', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--dark);
  margin-bottom: 4px;
}
.event-meta {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 18px;
}
.event-highlights {
  font-family: 'Prompt', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--pink);
  margin-bottom: 0;
}

/* ── Features (hellblauer Block wie im Flugblatt) ───────────── */
.features {
  max-width: 960px;
  margin: 32px auto 0;
  padding: 36px 32px 16px;
  background: var(--ice);
}
.feature {
  margin-bottom: 24px;
}
.feature-title {
  font-family: 'Prompt', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.9rem;
  line-height: 1.45;
  margin-bottom: 10px;
}
/* Pinke Balken hinter jeder Zeile */
.feature-title span {
  background: var(--pink);
  color: #fff;
  padding: 0 12px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.feature p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #222;
  margin-bottom: 0;
}

/* ── Flugblatt ──────────────────────────────────────── */
.flugblatt {
  max-width: 960px;
  margin: 48px auto 0;
  padding: 0 16px;
  text-align: center;
}

/* ── Blätterkatalog (PDF.js + StPageFlip) ──────────────────── */
.flipbook {
  --page-ratio: 0.753;
  --bar-h: 48px;
  --flipbook-bg: #2b3137;
  margin-top: 8px;
  background: var(--flipbook-bg);
  color: #fff;
  outline: none;
  overscroll-behavior-x: contain;
}
.flipbook-stage {
  position: relative;
  padding: 24px 56px;
  overflow: hidden;
  touch-action: pan-y; /* weggelegte Seite verschwindet am Rand */
}
/* Höhe begrenzen: Doppelseite darf max. 80vh hoch werden */
.flipbook-sizer {
  position: relative;
  margin: 0 auto;
  max-width: calc(80vh * var(--page-ratio) * 2);
  min-height: 200px;
}
.flipbook-page.is-blank {
  background: var(--flipbook-bg);
}
/* Außenrand der Seiten minimal beschneiden: sonst blitzt beim Umblättern an der Kante
   eine Pixelreihe der alten Seite unter der Leerseite hervor (Kantenglättung) */
.flipbook-page img {
  display: block;
  width: 100%;
  height: 100%;
  clip-path: inset(3px);
  user-select: none;
}
.flipbook-page.--left img { clip-path: inset(3px 0 3px 3px); }
.flipbook-page.--right img { clip-path: inset(3px 3px 3px 0); }
/* Handy: Seitenstapel – Seite wird weggelegt / wieder hingelegt */
.flipbook-stack {
  position: relative;
  width: 100%;
  aspect-ratio: var(--page-ratio);
  margin: 0 auto;
  touch-action: pan-y;
}
.flipbook-stack .flipbook-page {
  position: absolute;
  inset: 0;
  visibility: hidden;
  background: #fff;
}
.flipbook-stack .flipbook-page img {
  clip-path: none;
}
.flipbook-stack .flipbook-page.is-current {
  visibility: visible;
  z-index: 1;
}
.flipbook-stack .flipbook-page.is-top {
  visibility: visible;
  z-index: 2;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}
.flipbook-stack .flipbook-page.is-anim {
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.flipbook-stack .flipbook-page.is-away {
  transform: translateX(-125%) rotate(-7deg);
}
.flipbook-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #cfd6dc;
}
.flipbook-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 64px;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: background 0.18s, opacity 0.18s;
  z-index: 2;
}
.flipbook-nav:hover {
  background: var(--pink);
}
.flipbook-nav:disabled {
  opacity: 0.2;
  cursor: default;
  background: rgba(255, 255, 255, 0.08);
}
.flipbook-nav.prev { left: 6px; }
.flipbook-nav.next { right: 6px; }
.flipbook:not(.is-ready) .flipbook-nav { visibility: hidden; }
.flipbook-bar {
  height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: #1f2428;
  font-size: 0.85rem;
}
.flipbook-tools {
  display: flex;
  gap: 4px;
}
.flipbook-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.flipbook-tool:hover {
  color: var(--pink);
}
/* Vollbild: der Katalog füllt den Bildschirm (gleiche Pfeile und Animationen) */
.flipbook.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  margin: 0;
}
.flipbook.is-fullscreen .flipbook-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
}
.flipbook.is-fullscreen .flipbook-sizer {
  width: 100%;
  max-width: calc((100dvh - var(--bar-h) - 48px) * var(--page-ratio) * 2);
}
.flipbook.is-fullscreen .flipbook-stack {
  max-width: calc((100dvh - var(--bar-h) - 32px) * var(--page-ratio));
  cursor: default;
}
.flipbook.is-fullscreen .flipbook-bar {
  padding-bottom: env(safe-area-inset-bottom);
  height: calc(var(--bar-h) + env(safe-area-inset-bottom));
}
/* X oben rechts zum Verlassen – nur im Vollbild, auch über der Zoom-Ebene */
.flipbook-close {
  display: none;
}
.flipbook.is-fullscreen .flipbook-close {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top));
  right: calc(10px + env(safe-area-inset-right));
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
}
.flipbook.is-fullscreen .flipbook-close:hover {
  background: var(--pink);
}
/* Lupe nur im Vollbild */
.flipbook-zoom-btn {
  display: none !important;
}
.flipbook.is-fullscreen .flipbook-zoom-btn {
  display: inline-flex !important;
}
html.flipbook-fs-open,
html.flipbook-fs-open body {
  overflow: hidden;
}

/* Zoom-Ebene: liegt im Vollbild über dem Katalog, solange hineingezoomt ist */
.flipbook-zoom {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background: #1a1e22;
  color: #fff;
}
.flipbook-zoom[hidden] {
  display: none;
}
.flipbook-zoom-scroll {
  flex: 1;
  display: flex;
  overflow: auto;
  touch-action: pan-x pan-y; /* Zwei-Finger-Zoom übernimmt das Script */
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.flipbook-zoom-pages {
  margin: auto; /* zentriert, solange kleiner als der Bildschirm */
  display: flex;
  flex-shrink: 0;
}
.flipbook-zoom-pages img {
  display: block;
  width: calc(100% / var(--n, 1));
  height: auto;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.flipbook-zoom-bar {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 56px;
  padding: 0 8px env(safe-area-inset-bottom);
  background: #111417;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.flipbook-zoom-bar .z-label {
  padding: 0 6px;
  white-space: nowrap;
}
.flipbook-zoom-bar .z-spacer {
  flex: 1;
}
.flipbook-zoom-bar .flipbook-tool {
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  line-height: 1;
}
.flipbook-zoom-bar .z-close {
  font-size: 1.2rem;
}
.flipbook-stack {
  cursor: zoom-in;
}

/* ── Button ─────────────────────────────────────────────────── */
.btn-outline-pink {
  color: var(--pink);
  border: 2px solid var(--pink);
  background: transparent;
  font-family: 'Prompt', Arial, sans-serif;
  font-weight: 600;
  border-radius: 0;
  padding: 10px 22px;
  transition: background 0.18s, color 0.18s;
}
.btn-outline-pink:hover {
  background: var(--pink);
  color: #fff;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 576px) {
  .form-title {
    font-size: 1.25rem;
  }
  .features {
    padding: 28px 16px 8px;
  }
  .feature-title {
    font-size: 1.5rem;
  }
  .flipbook-stage {
    padding: 16px 8px;
  }
  .flipbook-nav {
    width: 36px;
    height: 52px;
    background: rgba(0, 0, 0, 0.35);
  }
}
