/* =============================================================
   zertifikate.css  –  Bakery&Food Zertifikate-Unterseite
   Design System: Premium Heritage (style3.css variables)
   ============================================================= */

/* ─────────────────────────────────────────────
   1. HERO
───────────────────────────────────────────── */
.zt-hero {
  position: relative;
  padding: 7rem 0 6.5rem;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(200, 153, 63, .22) 0%, transparent 60%),
    linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 58%, #16324F 100%);
}

/* Feines "Sicherheitspapier"-Raster im Hintergrund */
.zt-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 14px);
  pointer-events: none;
}

.zt-hero::after {
  content: '';
  position: absolute;
  left: -140px;
  bottom: -180px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(255, 255, 255, .025);
  pointer-events: none;
}

.zt-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.zt-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.1rem;
}

.zt-hero__kicker i { font-size: 1rem; }

.zt-hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  margin-bottom: 1.25rem;
}

.zt-hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.zt-hero__lead {
  color: rgba(255, 255, 255, .82);
  font-size: 1.12rem;
  line-height: 1.85;
  max-width: 640px;
  margin-bottom: 2.25rem;
}

/* Vertrauens-Chips im Hero */
.zt-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.zt-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .07);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  transition: background .25s var(--ease-smooth), border-color .25s var(--ease-smooth), transform .25s var(--ease-out);
}

.zt-hero__badge i { color: var(--gold-light); }

a.zt-hero__badge:hover {
  background: rgba(200, 153, 63, .9);
  border-color: transparent;
  transform: translateY(-2px);
}

a.zt-hero__badge:hover i { color: #fff; }

/* ─────────────────────────────────────────────
   2. KENNZAHLEN-LEISTE
───────────────────────────────────────────── */
.zt-stats {
  background: var(--warm-white);
  border-bottom: 1px solid var(--border-light);
  padding: 0;
}

.zt-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: -3.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  z-index: 3;
}

.zt-stat {
  padding: 2rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.zt-stat:last-child { border-right: 0; }

.zt-stat__value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.zt-stat__value span {
  font-size: 1.1rem;
  color: var(--gold);
}

.zt-stat__label {
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: auto;
  padding-top: .45rem;
}

/* ─────────────────────────────────────────────
   3. INTRO
───────────────────────────────────────────── */
.zt-intro {
  padding: 5.5rem 0 1rem;
  text-align: center;
}

.zt-intro__quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-style: italic;
  line-height: 1.6;
  color: var(--primary);
  max-width: 860px;
  margin: 0 auto 1.25rem;
}

.zt-intro__text {
  max-width: 720px;
  margin: 0 auto;
  color: var(--ink-light);
}

/* ─────────────────────────────────────────────
   4. ZERTIFIKAT-BLÖCKE
───────────────────────────────────────────── */
.zt-certs { padding: 4.5rem 0 5rem; }

.zt-cert {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4.5rem;
  align-items: center;
  padding: 3.5rem 0;
  scroll-margin-top: 100px;
}

.zt-cert + .zt-cert { border-top: 1px solid var(--border-light); }

.zt-cert--reverse .zt-cert__visual { order: 2; }

/* --- Dokument-Vorschau (CSS-Nachbildung des Zertifikats) --- */
.zt-cert__visual {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1400px;
}

.zt-doc-stack {
  position: relative;
  width: 100%;
  max-width: 340px;
}

/* Zwei versetzte Papierlagen für Tiefe */
.zt-doc-stack::before,
.zt-doc-stack::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: transform .6s var(--ease-out);
}

.zt-doc-stack::before { transform: rotate(-4deg) translate(-10px, 8px); }
.zt-doc-stack::after  { transform: rotate(2.5deg) translate(8px, 4px); }

.zt-doc-stack:hover::before { transform: rotate(-6.5deg) translate(-16px, 10px); }
.zt-doc-stack:hover::after  { transform: rotate(4deg) translate(13px, 6px); }

.zt-doc {
  position: relative;
  z-index: 2;
  aspect-ratio: 1 / 1.414;
  background: linear-gradient(160deg, #FFFDF9 0%, #FFFFFF 45%, #FBF7F0 100%);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow-xl);
  padding: 2rem 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}

.zt-doc-stack:hover .zt-doc {
  transform: translateY(-10px) rotateX(3deg);
  box-shadow: 0 34px 70px rgba(26, 26, 46, .22);
}

/* Goldene Zierlinie innen */
.zt-doc::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(200, 153, 63, .45);
  border-radius: 3px;
  pointer-events: none;
}

/* Wasserzeichen */
.zt-doc__watermark {
  position: absolute;
  right: -14px;
  bottom: -26px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 8.5rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(27, 58, 92, .05);
  pointer-events: none;
  user-select: none;
}

.zt-doc__ribbon {
  position: absolute;
  top: 1.35rem;
  right: -2.4rem;
  transform: rotate(38deg);
  background: var(--gold);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .18em;
  padding: .3rem 2.6rem;
  box-shadow: var(--shadow-sm);
}

.zt-doc__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
}

.zt-doc__issuer {
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .9rem;
}

.zt-doc__label {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: .04em;
  margin-bottom: .1rem;
}

.zt-doc__label small {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .15rem;
}

.zt-doc__rule {
  width: 46px;
  height: 2px;
  background: var(--gold);
  margin: .9rem auto 1.1rem;
}

.zt-doc__standard {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: .35rem;
}

.zt-doc__scope {
  font-size: .68rem;
  line-height: 1.6;
  color: var(--ink-light);
  margin-bottom: 0;
}

/* Siegel */
.zt-doc__seal {
  width: 74px;
  height: 74px;
  margin: 1.4rem auto .9rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.6rem;
  background: radial-gradient(circle at 32% 28%, var(--gold-light) 0%, var(--gold) 55%, var(--gold-dark) 100%);
  box-shadow: 0 6px 18px rgba(200, 153, 63, .38), inset 0 0 0 4px rgba(255, 255, 255, .35);
  position: relative;
}

.zt-doc__seal::after {
  content: '';
  position: absolute;
  inset: -7px;
  border: 1px dashed rgba(200, 153, 63, .55);
  border-radius: 50%;
}

.zt-doc__foot {
  margin-top: auto;
  padding-top: .9rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  font-size: .58rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Schwebendes Datei-Label */
.zt-doc-file {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: -22px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: .5rem 1.1rem;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .04em;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.zt-doc-file i { color: var(--gold-light); font-size: .95rem; }

/* --- Textseite --- */
.zt-cert__kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: .85rem;
}

.zt-cert__kicker::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.zt-cert h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin-bottom: 1.1rem;
}

.zt-cert__text {
  color: var(--ink-light);
  margin-bottom: 1rem;
}

.zt-cert__points {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 1.75rem;
  display: grid;
  gap: .7rem;
}

.zt-cert__points li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: .96rem;
  color: var(--ink);
  line-height: 1.65;
}

.zt-cert__points i {
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: .15rem;
}

/* Metadaten-Tabelle */
.zt-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  margin-bottom: 1.9rem;
}

.zt-meta__item {
  padding: .95rem 1.15rem;
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.zt-meta__item:nth-child(2n) { border-right: 0; }
.zt-meta__item:nth-last-child(-n+2) { border-bottom: 0; }

.zt-meta__key {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .2rem;
}

.zt-meta__val {
  display: block;
  font-size: .93rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.45;
}

/* Aktionen */
.zt-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .85rem;
}

.zt-actions .btn { white-space: nowrap; }

.zt-filehint {
  font-size: .8rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

/* ─────────────────────────────────────────────
   5. QUALITÄTS-SÄULEN
───────────────────────────────────────────── */
.zt-pillars {
  background: var(--cream);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.zt-pillars::before {
  content: '';
  position: absolute;
  top: -120px;
  left: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(200, 153, 63, .12) 0%, transparent 70%);
  pointer-events: none;
}

.zt-pillars__head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.25rem;
  position: relative;
}

.zt-pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  position: relative;
}

.zt-pillar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.9rem;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s;
}

.zt-pillar:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(200, 153, 63, .45);
}

.zt-pillar__icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  color: var(--gold-dark);
  background: var(--gold-soft);
  margin-bottom: 1.25rem;
}

.zt-pillar h3 {
  font-size: 1.22rem;
  margin-bottom: .6rem;
}

.zt-pillar p {
  font-size: .95rem;
  margin-bottom: 0;
  line-height: 1.75;
}

/* ─────────────────────────────────────────────
   6. DOWNLOAD-ÜBERSICHT
───────────────────────────────────────────── */
.zt-downloads { padding: 6rem 0; }

.zt-downloads__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.75rem;
}

.zt-dl-list {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #fff;
}

.zt-dl-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border-light);
  transition: background .3s var(--ease-smooth);
}

.zt-dl-row:last-child { border-bottom: 0; }

.zt-dl-row:hover { background: var(--cream); color: inherit; }

.zt-dl-row__icon {
  width: 46px;
  height: 56px;
  border-radius: 6px 12px 6px 6px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #FDF6EA 0%, #F6E9D2 100%);
  border: 1px solid rgba(200, 153, 63, .4);
  color: var(--gold-dark);
  font-size: 1.25rem;
}

.zt-dl-row__title {
  display: block;
  font-weight: 600;
  color: var(--primary);
  font-size: 1.02rem;
  line-height: 1.35;
  margin-bottom: .2rem;
}

.zt-dl-row__sub {
  display: block;
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.55;
}

.zt-dl-row__cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .87rem;
  font-weight: 600;
  color: var(--gold-dark);
  white-space: nowrap;
}

.zt-dl-row__cta i {
  transition: transform .3s var(--ease-bounce);
}

.zt-dl-row:hover .zt-dl-row__cta i { transform: translateY(3px); }

.zt-dl-note {
  max-width: 720px;
  margin: 1.5rem auto 0;
  font-size: .88rem;
  line-height: 1.7;
  color: var(--muted);
  text-align: center;
}

.zt-dl-note a {
  color: var(--gold-dark);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 153, 63, .45);
  transition: color .25s var(--ease-smooth), border-color .25s var(--ease-smooth);
}

.zt-dl-note a:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* ─────────────────────────────────────────────
   7. CTA
───────────────────────────────────────────── */
/* Wellen-Übergang von hell in den dunklen CTA-Block */
.zt-wave {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-bottom: -1px;
}

.zt-wave svg {
  display: block;
  width: 100%;
  height: 80px;
}

.zt-cta {
  position: relative;
  padding: 5rem 0 7rem;
  text-align: center;
  color: #fff;
  overflow: hidden;
  /* Oberkante exakt #1B3A5C (Wellenfüllung), Unterkante #0F2640 (Footer) */
  background:
    radial-gradient(900px 400px at 15% 110%, rgba(200, 153, 63, .28) 0%, transparent 60%),
    linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.zt-cta__kicker {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.zt-cta h2 {
  color: #fff;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  margin-bottom: 1.15rem;
}

.zt-cta h2 em { font-style: italic; color: var(--gold-light); }

.zt-cta p {
  color: rgba(255, 255, 255, .8);
  max-width: 620px;
  margin: 0 auto 2.25rem;
}

/* ─────────────────────────────────────────────
   8. PDF-VORSCHAU-MODAL
───────────────────────────────────────────── */
.zt-modal .modal-content {
  border: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.zt-modal .modal-header {
  background: var(--primary);
  color: #fff;
  border-bottom: 0;
  padding: 1rem 1.5rem;
}

.zt-modal .modal-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
}

.zt-modal .btn-close { filter: invert(1) grayscale(1) brightness(2); }

.zt-modal .modal-body { padding: 0; background: var(--cream-dark); }

.zt-modal iframe {
  width: 100%;
  height: 78vh;
  border: 0;
  display: block;
}

.zt-modal .modal-footer {
  border-top: 1px solid var(--border-light);
  background: #fff;
  padding: .85rem 1.25rem;
}

/* ─────────────────────────────────────────────
   9. RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .zt-hero { padding: 5rem 0 5.5rem; }

  .zt-stats__grid { grid-template-columns: repeat(2, 1fr); }
  .zt-stat:nth-child(2n) { border-right: 0; }
  .zt-stat:nth-child(-n+2) { border-bottom: 1px solid var(--border-light); }

  .zt-cert {
    grid-template-columns: 1fr;
    gap: 3.25rem;
    padding: 3rem 0;
  }

  .zt-cert--reverse .zt-cert__visual { order: 0; }

  .zt-doc-stack { max-width: 300px; margin: 0 auto; }

  .zt-pillar-grid { grid-template-columns: 1fr; }

  .zt-modal iframe { height: 68vh; }
}

@media (max-width: 575.98px) {
  .zt-hero__lead { font-size: 1rem; }

  .zt-stats__grid { margin-top: -2rem; }
  .zt-stat { padding: 1.5rem 1rem; }
  .zt-stat__value { font-size: 1.55rem; }

  .zt-meta { grid-template-columns: 1fr; }
  .zt-meta__item { border-right: 0; }
  .zt-meta__item:nth-last-child(2) { border-bottom: 1px solid var(--border-light); }

  .zt-actions { flex-direction: column; align-items: stretch; }
  .zt-actions .btn { width: 100%; justify-content: center; }
  .zt-filehint { justify-content: center; }

  .zt-dl-row {
    grid-template-columns: 44px 1fr;
    row-gap: .5rem;
  }
  .zt-dl-row__cta { grid-column: 2; }
  .zt-dl-row__icon { width: 38px; height: 46px; font-size: 1.05rem; }

  .zt-doc { padding: 1.5rem 1.15rem 1.15rem; }
  .zt-doc__standard { font-size: 1.2rem; }
  .zt-doc__watermark { font-size: 6rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .zt-doc,
  .zt-doc-stack::before,
  .zt-doc-stack::after,
  .zt-pillar {
    transition: none !important;
  }
  .zt-doc-stack:hover .zt-doc { transform: none; }
}
