/* Werbe-Flyer A5 — Bildschirm und Druck. Baut auf styles.css auf. */

.flyer-page {
  --fl-hero-bg: var(--navy);
  --fl-hero-bg2: #2a4d78;
  --fl-hero-text: #ffffff;
  --fl-hero-muted: rgba(255, 255, 255, 0.78);
  --fl-accent: var(--teal);
  --fl-accent-soft: var(--teal-soft);
  --fl-ink: var(--text);
  --fl-paper: #ffffff;
  --fl-sans: "Avenir Next", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  background: #e9e7e1;
}

.flyer-page--menschen {
  --fl-hero-bg: #efe8d8;
  --fl-hero-bg2: #e4dac4;
  --fl-hero-text: #1e3a5f;
  --fl-hero-muted: #6b5a3a;
  --fl-accent: #a0742a;
  --fl-accent-soft: #f5eedf;
  --fl-paper: #fffdf8;
}

.flyer-page--vorhang {
  --fl-hero-bg: #0f1730;
  --fl-hero-bg2: #23305a;
  --fl-hero-text: #ffffff;
  --fl-hero-muted: #b9c6e6;
  --fl-accent: #2f8fa6;
  --fl-accent-soft: #e8f3f6;
}

.flyer-page--coding {
  --fl-hero-bg: #1e3a5f;
  --fl-hero-bg2: #2c5378;
  --fl-hero-text: #ffffff;
  --fl-hero-muted: #c9d9e6;
  --fl-accent: #0d6b6b;
  --fl-accent-soft: #e6f3f3;
}

/* Werkzeugleiste (nur Bildschirm) */

.flyer-toolbar {
  width: min(100% - 2rem, 148mm);
  margin: 1.5rem auto 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}

.flyer-toolbar__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.flyer-toolbar .btn {
  font-size: 0.85rem;
  padding: 0.45rem 0.85rem;
}

/* Das Blatt */

.flyer {
  width: min(100% - 2rem, 148mm);
  min-height: 210mm;
  margin: 0 auto 2.5rem;
  background: var(--fl-paper);
  color: var(--fl-ink);
  box-shadow: 0 2px 4px rgba(26, 31, 46, 0.08), 0 18px 48px rgba(26, 31, 46, 0.16);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-size: 9pt;
  line-height: 1.4;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.flyer__hero {
  display: grid;
  grid-template-columns: 33mm 1fr;
  gap: 6.5mm;
  align-items: center;
  padding: 6.5mm 10mm 6mm;
  background: linear-gradient(135deg, var(--fl-hero-bg) 0%, var(--fl-hero-bg2) 100%);
  color: var(--fl-hero-text);
}

.flyer__cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 8px 22px rgba(0, 0, 0, 0.32);
  transform: rotate(-1.5deg);
}

.flyer__kicker {
  margin: 0 0 2.5mm;
  font-family: var(--fl-sans);
  font-size: 7pt;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fl-hero-muted);
}

.flyer__title {
  margin: 0 0 2mm;
  font-size: 20pt;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--fl-hero-text);
}

.flyer__subtitle {
  margin: 0 0 3mm;
  font-size: 9.2pt;
  line-height: 1.35;
  font-style: italic;
  color: var(--fl-hero-muted);
}

.flyer__author {
  margin: 0;
  font-family: var(--fl-sans);
  font-size: 8.5pt;
  font-weight: 600;
  color: var(--fl-hero-text);
}

.flyer__author span {
  display: block;
  font-weight: 400;
  font-size: 7pt;
  color: var(--fl-hero-muted);
}

.flyer__body {
  flex: 1;
  padding: 5mm 10mm 0;
  display: flex;
  flex-direction: column;
}

.flyer__hook {
  margin: 0 0 4mm;
  padding-left: 3.5mm;
  border-left: 1.1mm solid var(--fl-accent);
  font-size: 10.8pt;
  line-height: 1.38;
  color: var(--navy);
}

.flyer__label {
  margin: 0 0 2mm;
  font-family: var(--fl-sans);
  font-size: 7pt;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fl-accent);
}

.flyer__list {
  list-style: none;
  margin: 0 0 4mm;
  padding: 0;
  counter-reset: fl;
  display: grid;
  gap: 1.8mm;
}

.flyer__list li {
  counter-increment: fl;
  display: grid;
  grid-template-columns: 5.6mm 1fr;
  gap: 2.5mm;
  align-items: start;
}

.flyer__list li::before {
  content: counter(fl);
  display: grid;
  place-items: center;
  width: 5.6mm;
  height: 5.6mm;
  border-radius: 50%;
  background: var(--fl-accent-soft);
  color: var(--fl-accent);
  font-family: var(--fl-sans);
  font-size: 7.5pt;
  font-weight: 700;
}

.flyer__list strong {
  color: var(--navy);
}

.flyer__for {
  margin: 0 0 1.5mm;
  font-size: 8.4pt;
  font-style: italic;
  color: var(--muted);
}

.flyer__audience {
  margin: 0 0 4mm;
  font-family: var(--fl-sans);
  font-size: 8pt;
  font-weight: 600;
  color: var(--fl-accent);
}

.flyer__cta {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 24mm;
  gap: 5mm;
  align-items: center;
  padding: 4mm 10mm 5mm;
  background: var(--fl-accent-soft);
  border-top: 0.4mm solid var(--fl-accent);
}

.flyer__cta-title {
  margin: 0 0 1.2mm;
  font-size: 11pt;
  font-weight: 700;
  color: var(--navy);
}

.flyer__cta p {
  margin: 0 0 0.8mm;
  font-size: 8.2pt;
}

.flyer__cta a {
  color: var(--navy);
  font-weight: 600;
}

.flyer__url {
  font-family: var(--fl-sans);
  font-size: 7.6pt;
  color: var(--muted);
}

.flyer__qr {
  display: block;
  width: 24mm;
  height: 24mm;
  padding: 1.6mm;
  background: #fff;
  border-radius: 1.5mm;
}

.flyer__qr img {
  display: block;
  width: 100%;
  height: 100%;
}


/* Schmale Bildschirme */

@media screen and (max-width: 34rem) {
  .flyer {
    min-height: 0;
    font-size: 10pt;
  }
  .flyer__hero {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 1.5rem 1.25rem;
  }
  .flyer__cover {
    width: 9rem;
  }
  .flyer__body {
    padding: 1.25rem 1.25rem 0;
  }
  .flyer__cta {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }
}

/* Druck: genau ein A5-Blatt */

@page {
  size: A5 portrait;
  margin: 0;
}

@media print {
  html {
    font-size: 100%;
  }
  body.flyer-page {
    background: #fff;
    display: block;
    min-height: 0;
  }
  .flyer-toolbar {
    display: none;
  }
  .flyer {
    width: 148mm;
    height: 210mm;
    min-height: 0;
    margin: 0;
    box-shadow: none;
    page-break-after: avoid;
    break-after: avoid;
  }
  .flyer a {
    text-decoration: none;
  }
}
