/* Quality page of draft 3 (qualitaet.html), variant "Urkunde" chosen by Gianni on 22.09.2026: the real SQS
   certificate as the centrepiece, the three certified areas as photo cards, the certified gravel from the own plant.
   Only loaded by qualitaet.html. */

.kq { --kq-green: #017153; --kq-dark: #04382A; --kq-ink: #062C22; --kq-yellow: #FDF21E; --kq-grey: #EDEEED;
  font-family: var(--_typography---font--body-font); color: var(--kq-ink); }

.kq-sec { padding: var(--_sizes---section--section-padding-vertical) 6vw; position: relative; }
.kq-sec.white { background: #fff; }
.kq-sec.grey { background: var(--kq-grey); }
.kq-sec.green { background: var(--kq-green); color: #fff; }
.kq h2 { margin: 0; font-family: var(--_typography---font--heading-font); font-weight: 500; letter-spacing: -.035em; line-height: 1.04; color: var(--kq-dark); font-size: clamp(2rem, 3.6vw, 3.6rem); }
.kq .green h2 { color: #fff; }
.kq h3 { margin: 0; font-family: var(--_typography---font--heading-font); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; color: var(--kq-dark); font-size: clamp(1.25rem, 1.6vw, 1.6rem); }
.kq p { margin: 0; font-size: 17px; line-height: 1.6; }
.kq .tag-wrap { justify-content: flex-start; margin-bottom: 22px; }
.kq-head-center { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 52rem; margin: 0 auto 4vw; }
.kq-head-center p { margin-top: 1.1rem; max-width: 40rem; color: rgba(6, 44, 34, .75); }
.kq .green .kq-head-center p { color: rgba(255, 255, 255, .82); }

/* buttons in the look of the template's primary button */
.kq-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 8px; background: var(--kq-green); color: #fff; text-decoration: none; font: 500 16px/1 var(--_typography---font--body-font); transition: background-color .25s, color .25s; }
.kq-btn:hover { background: var(--kq-dark); color: #fff; }
.kq-btn.yellow { background: var(--kq-yellow); color: var(--kq-dark); }
.kq-btn.yellow:hover { background: #fff; }
.kq-btn .kq-ic { font-size: 20px; }
.kq-btn:focus-visible, .kq a:focus-visible { outline: 2px solid var(--kq-yellow); outline-offset: 3px; }
.kq-ic { font-family: "Material Icons"; font-weight: normal; font-style: normal; line-height: 1; letter-spacing: normal; text-transform: none; white-space: nowrap; font-feature-settings: "liga"; -webkit-font-smoothing: antialiased; }

/* round icon in the style of the start page counters: yellow icon on a green circle */
.kq-dot { flex: none; width: 58px; height: 58px; border-radius: 50%; background: var(--kq-green); color: var(--kq-yellow); display: grid; place-items: center; }
.kq-dot .kq-ic { font-size: 26px; }
.green .kq-dot { background: var(--kq-dark); }

.kq1-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6vw; align-items: center; }
.kq1-intro p { margin-top: 1.4rem; max-width: 34rem; color: rgba(6, 44, 34, .78); }
.kq1-facts { margin: 2.4rem 0 2.2rem; padding: 0; list-style: none; max-width: 34rem; border-top: 1px solid rgba(4, 56, 42, .14); }
.kq1-facts li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: 15px 0; border-bottom: 1px solid rgba(4, 56, 42, .14); font-size: 16px; }
.kq1-facts span { color: rgba(6, 44, 34, .6); }
.kq1-facts b { font-weight: 500; color: var(--kq-dark); }

/* the certificate sheet: tilted at first, straightens while it scrolls into the middle (js sets --t from 1 to 0) */
/* the sheet lies on a Kern green panel, so the white paper stands out from the white section */
.kq1-stage { position: relative; perspective: 1600px; padding: 3.6vw; border-radius: var(--_sizes---radius--md-radius); background: var(--kq-green); }
.kq1-sheet { --t: 1; display: block; position: relative; margin: 0 auto; width: min(100%, 440px); aspect-ratio: 990 / 1400; background: #fff; border-radius: 6px; overflow: hidden;
  transform: rotateY(calc(var(--t) * -16deg)) rotateX(calc(var(--t) * 7deg)) rotateZ(calc(var(--t) * 3deg)) translateY(calc(var(--t) * 30px));
  box-shadow: 0 calc(10px + var(--t) * 30px) calc(30px + var(--t) * 50px) rgba(4, 56, 42, calc(.16 + var(--t) * .12)), 0 2px 6px rgba(4, 56, 42, .1); will-change: transform; }
.kq1-sheet img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kq1-sheet::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, calc(var(--t) * .55)) 48%, rgba(255, 255, 255, 0) 62%); }
.kq1-stage { isolation: isolate; }

/* yellow seal with the certificate facts running around it, turns with the scroll */
.kq-seal { --r: 0deg; position: absolute; width: 168px; height: 168px; border-radius: 50%; background: var(--kq-yellow); color: var(--kq-dark); display: grid; place-items: center; box-shadow: 0 14px 30px rgba(4, 56, 42, .25); }
.kq-seal svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(var(--r)); }
.kq-seal text { font: 600 12.4px var(--_typography---font--body-font); letter-spacing: .14em; fill: var(--kq-dark); }
.kq-seal-core { position: relative; width: 84px; height: 84px; border-radius: 50%; background: var(--kq-dark); color: var(--kq-yellow); display: grid; place-items: center; }
.kq-seal-core .kq-ic { font-size: 42px; }
.kq1-stage .kq-seal { left: -56px; bottom: 12%; }

/* scope: three photo cards like the start page service cards, on Kern green */
.kq1-scope { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6vw; }
.kq1-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--_sizes---radius--md-radius); padding: 22px; text-decoration: none; color: var(--kq-ink); transition: background-color .3s, color .3s; }
.kq1-card .kq-chip { align-self: flex-start; margin-bottom: 14px; padding: 5px 8px; border-radius: 4px; background: var(--kq-grey); font-size: 11px; font-weight: 500; letter-spacing: .02em; color: var(--kq-dark); }
.kq1-card h3 { margin-bottom: 10px; }
.kq1-card p { flex-grow: 1; font-size: 15px; line-height: 1.55; color: rgba(6, 44, 34, .72); }
.kq1-card figure { margin: 22px 0 0; aspect-ratio: 4 / 3; border-radius: calc(var(--_sizes---radius--md-radius) * .7); overflow: hidden; }
.kq1-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .8, .25, 1); }
.kq1-card .kq-more { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; color: var(--kq-green); }
.kq1-card:hover { background: var(--kq-dark); color: #fff; }
.kq1-card:hover h3 { color: #fff; }
.kq1-card:hover p { color: rgba(255, 255, 255, .78); }
.kq1-card:hover .kq-more { color: var(--kq-yellow); }
.kq1-card:hover .kq-chip { background: var(--kq-yellow); }
.kq1-card:hover img { transform: scale(1.06); }

.kq1-counters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2vw; margin-top: 4vw; padding-top: 3vw; border-top: 1px solid rgba(255, 255, 255, .2); }
.kq1-counter { display: flex; align-items: center; gap: 18px; }
.kq1-counter b { display: block; font: 500 clamp(2rem, 2.8vw, 2.8rem)/1 var(--_typography---font--heading-font); letter-spacing: -.03em; color: #fff; }
.kq1-counter b em { font-style: normal; color: var(--kq-yellow); }
.kq1-counter span { display: block; margin-top: 6px; font-size: 16px; font-weight: 500; color: rgba(255, 255, 255, .9); }

/* material: photo with a floating norm badge, text on the right */
.kq1-material { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 5vw; align-items: center; }
.kq1-photo { position: relative; }
.kq1-photo figure { margin: 0; aspect-ratio: 7 / 5; border-radius: var(--_sizes---radius--md-radius); overflow: hidden; }
.kq1-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kq1-badge { position: absolute; right: -28px; bottom: -28px; display: flex; align-items: center; gap: 14px; padding: 16px 22px 16px 16px; background: #fff; border-radius: 12px; box-shadow: 0 18px 40px rgba(4, 56, 42, .16); }
.kq1-badge small { display: block; font-size: 13px; color: rgba(6, 44, 34, .6); }
.kq1-badge b { display: block; font: 500 22px/1.1 var(--_typography---font--heading-font); color: var(--kq-dark); letter-spacing: -.02em; }
.kq1-material p { margin-top: 1.3rem; color: rgba(6, 44, 34, .78); max-width: 32rem; }
.kq-rows { margin: 2rem 0 2.2rem; display: grid; gap: 12px; }
.kq-row { display: flex; gap: 16px; align-items: center; padding: 16px; background: #fff; border-radius: 12px; }
.kq-row .kq-dot { width: 48px; height: 48px; }
.kq-row .kq-dot .kq-ic { font-size: 22px; }
.kq-row b { display: block; font: 500 18px/1.2 var(--_typography---font--heading-font); color: var(--kq-dark); }
.kq-row span { display: block; margin-top: 3px; font-size: 15px; color: rgba(6, 44, 34, .68); }

/* ============ responsive ============ */
@media (max-width: 991px) {
  .kq1-intro, .kq1-material { grid-template-columns: 1fr; }
  .kq1-stage { padding: 40px; max-width: 560px; margin-left: 30px; }
  .kq1-scope { grid-template-columns: 1fr 1fr; }
  .kq1-badge { right: 16px; bottom: -24px; }
}
@media (max-width: 767px) {
  .kq-sec { padding: 64px 20px; }
  .kq-head-center { margin-bottom: 36px; }
  .kq1-scope, .kq1-counters { grid-template-columns: 1fr; gap: 16px; }
  .kq1-counters { margin-top: 40px; padding-top: 32px; gap: 22px; }
  .kq1-card { border-radius: 14px; }
  .kq1-facts li { grid-template-columns: 9.4rem 1fr; gap: .6rem; font-size: 15px; }
  .kq1-photo { margin-bottom: 44px; }
  .kq-seal { width: 128px; height: 128px; }
  .kq-seal-core { width: 64px; height: 64px; }
  .kq-seal-core .kq-ic { font-size: 32px; }
  .kq1-stage { padding: 28px; margin-left: 24px; }
  .kq1-stage .kq-seal { left: -34px; bottom: 6%; }
  .kq1-photo figure { border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .kq1-sheet { --t: 0 !important; }
  .kq1-card img { transition: none; }
}

/* call to action below the grey sections: grey all the way instead of the template's white-grey split */
.main-section.cta.kq-cta { background-image: none; background-color: #EDEEED; }
