/* Shared base for all /de/flyer/* pages: A4 print mechanics + light-mode-for-print
   enforcement, plus the small set of building blocks (badges, stat boxes, service
   tiles, process steps, CTA box) every flyer is assembled from. Per-flyer CSS files
   only add page-specific grid arrangement/copy-length tweaks on top of this. */

.flyer-page {
  --fp-bg: var(--card-color);
  --fp-surface: rgba(255, 255, 255, 0.04);
  --fp-text: #ffffff;
  --fp-muted: rgba(255, 255, 255, 0.62);
  --fp-muted-2: rgba(255, 255, 255, 0.42);
  --fp-border: rgba(255, 255, 255, 0.1);
  --fp-accent: var(--primary-color);
  --fp-accent-soft: rgba(30, 136, 229, 0.14);
  --fp-accent-border: rgba(30, 136, 229, 0.4);
  --fp-on-accent: #ffffff;
  padding: 90px 20px 110px;
}

@media print {
  .flyer-page {
    --fp-bg: #ffffff;
    --fp-surface: #f2f5f9;
    --fp-text: #0b1526;
    --fp-muted: #48525f;
    --fp-muted-2: #6d7682;
    --fp-border: #dde3ea;
    --fp-accent: #1e88e5;
    --fp-accent-soft: #e8f2fc;
    --fp-accent-border: #bcdcf7;
    --fp-on-accent: #ffffff;
  }
}

/* ── Print mechanics ─────────────────────────────────────────────────────── */

@media print {
  @page { size: A4; margin: 12mm; }

  html, body { background: #ffffff !important; }

  .main-navbar, .side-modal, .footer-area, .footer-area + hr,
  .cobyright-area, .go-top { display: none !important; }

  .flyer-page { padding: 0 !important; }

  .flyer-sheet {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #ffffff !important;
    color: #0b1526 !important;
  }

  .no-print { display: none !important; }
}

/* ── Sheet shell ─────────────────────────────────────────────────────────── */

.flyer-sheet {
  width: min(210mm, 100%);
  margin: 0 auto;
  padding: 16mm 14mm;
  background: var(--fp-bg);
  color: var(--fp-text);
  border: 1px solid var(--fp-border);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.flyer-toolbar {
  width: min(210mm, 100%);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.flyer-print-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--fp-accent, #1e88e5);
  border: 1px solid var(--fp-accent-border, rgba(30, 136, 229, 0.4));
  border-radius: 6px;
  padding: 9px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-family);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.flyer-print-btn:hover { background: rgba(30, 136, 229, 0.12); }

/* ── Compact/extended version toggle (Physical + Übersicht only for now) ──
   Print always reflects whichever version is currently visible on screen,
   since it's just window.print() over the live DOM — no separate print
   stylesheet branch needed. Extended content lives in .flyer-extra blocks,
   hidden by default; switching to "extended" reveals them and the sheet
   naturally flows onto a second printed page, no forced page-break rules. */
.flyer-version-toggle {
  display: inline-flex;
  border: 1px solid var(--fp-accent-border, rgba(30, 136, 229, 0.4));
  border-radius: 6px;
  overflow: hidden;
}

.flyer-version-btn {
  background: transparent;
  border: none;
  color: var(--fp-accent, #1e88e5);
  font-family: var(--font-family);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.flyer-version-btn + .flyer-version-btn { border-left: 1px solid var(--fp-accent-border, rgba(30, 136, 229, 0.4)); }
.flyer-version-btn:hover { background: rgba(30, 136, 229, 0.12); }
.flyer-version-btn.is-active { background: var(--fp-accent, #1e88e5); color: var(--fp-on-accent, #fff); }
.flyer-version-btn.is-active:hover { background: var(--fp-accent, #1e88e5); }

.flyer-extra { display: none; }
.flyer-page[data-version="extended"] .flyer-extra { display: block; }
.flyer-page[data-version="extended"] .flyer-extra-hide { display: none; }

/* ── Header ──────────────────────────────────────────────────────────────── */

.flyer-logo { height: 34px; width: auto; margin-bottom: 18px; }

/* Two logo variants ship in the markup: a white one for the dark on-screen
   sheet, a blue one for the forced-light print (the white one would be
   invisible against a white printed page). */
.flyer-logo-print { display: none; }
@media print {
  .flyer-logo-screen { display: none; }
  .flyer-logo-print { display: block; }
}

.flyer-h1 {
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--fp-text);
  margin: 0 0 0.5rem;
}

.flyer-subline {
  font-size: 1rem;
  color: var(--fp-muted);
  margin: 0 0 1rem;
  max-width: 46em;
}

.flyer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.75rem; }

.flyer-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--fp-accent);
  background: var(--fp-accent-soft);
  border: 1px solid var(--fp-accent-border);
  border-radius: 20px;
  padding: 5px 12px;
}

/* ── Stats row ───────────────────────────────────────────────────────────── */

.flyer-stats-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1.25rem;
  padding: 1.1rem 0 1.5rem;
  border-top: 1px solid var(--fp-border);
  border-bottom: 1px solid var(--fp-border);
  margin-bottom: 1.75rem;
}

.flyer-stat { flex: 0 0 auto; min-width: 130px; }

.flyer-stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fp-text);
  line-height: 1.1;
}

.flyer-stat-label { font-size: 0.72rem; color: var(--fp-muted); line-height: 1.4; margin-top: 3px; max-width: 15em; }
.flyer-stat-source { font-size: 0.63rem; color: var(--fp-muted-2); margin-top: 3px; }

.flyer-intro { flex: 1 1 260px; font-size: 0.85rem; color: var(--fp-muted); line-height: 1.65; margin: 0; align-self: center; }

/* ── Main two-column area ───────────────────────────────────────────────── */

.flyer-main { display: grid; grid-template-columns: 1.55fr 1fr; gap: 2.25rem; align-items: start; }

.flyer-h2 {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fp-muted);
  margin: 0 0 0.9rem;
  break-after: avoid;
}

/* Service tiles */

.flyer-services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }

.flyer-service { display: flex; gap: 10px; align-items: flex-start; break-inside: avoid; }

.flyer-service-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  color: var(--fp-accent);
}
.flyer-service-icon svg { width: 100%; height: 100%; }

.flyer-service h3 { font-size: 0.83rem; font-weight: 700; color: var(--fp-text); margin: 0 0 2px; line-height: 1.3; }
.flyer-service p { font-size: 0.72rem; color: var(--fp-muted); line-height: 1.45; margin: 0; }

/* Sidebar: process + CTA */

.flyer-side { display: flex; flex-direction: column; gap: 1.5rem; }

.flyer-process { display: flex; flex-direction: column; gap: 12px; }

.flyer-step { display: flex; gap: 10px; align-items: flex-start; break-inside: avoid; }

.flyer-step-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--fp-accent-soft);
  color: var(--fp-accent);
  border: 1px solid var(--fp-accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
}

.flyer-step h3 { font-size: 0.82rem; font-weight: 700; color: var(--fp-text); margin: 0 0 2px; }
.flyer-step p { font-size: 0.72rem; color: var(--fp-muted); line-height: 1.45; margin: 0; }

.flyer-cta-box {
  background: var(--fp-accent-soft);
  border: 1px solid var(--fp-accent-border);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  break-inside: avoid;
}

.flyer-cta-box h2 { font-size: 0.95rem; font-weight: 800; color: var(--fp-text); margin: 0 0 0.4rem; }
.flyer-cta-box p { font-size: 0.75rem; color: var(--fp-muted); line-height: 1.5; margin: 0 0 0.7rem; }

.flyer-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--fp-accent) !important;
  text-decoration: none !important;
  margin-bottom: 0.85rem;
}
.flyer-cta-link:hover { text-decoration: underline !important; }

.flyer-cta-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--fp-text);
  padding-top: 0.7rem;
  border-top: 1px solid var(--fp-accent-border);
}
.flyer-cta-contact a { color: inherit !important; text-decoration: none !important; }
.flyer-cta-contact svg { width: 13px; height: 13px; margin-right: 5px; vertical-align: -2px; color: var(--fp-accent); }

/* ── Footer legal line ───────────────────────────────────────────────────── */

.flyer-footer-legal {
  margin-top: 1.75rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--fp-border);
  font-size: 0.68rem;
  color: var(--fp-muted-2);
  text-align: center;
}

@media (max-width: 700px) {
  .flyer-main { grid-template-columns: 1fr; }
  .flyer-services-grid { grid-template-columns: 1fr 1fr; }
  .flyer-sheet { padding: 32px 22px; }
}

@media (max-width: 480px) {
  .flyer-services-grid { grid-template-columns: 1fr; }
}
