/* ==========================================================================
   Components: cards, stat tiles, quotes, chips, placeholders
   v6 rule: nothing filled with color. Colored frames only, the page stays light.
   ========================================================================== */

/* ---------- Grids (parallel boxes = equal height) ---------- */
.grid-3,
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Card: full frame in Petrol, no fill ---------- */
.card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 2px solid var(--petrol);
  border-radius: var(--radius);
}
.card h3 { font-size: var(--fs-h3); }
.card-sub {
  font-weight: 500;
  color: var(--petrol-text);
}

/* ---------- Stat tile: colored outline, big number, small plain label ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.75rem;
  border: 2px solid var(--petrol);
  border-radius: 16px;
}
.stat-number {
  font-size: var(--fs-stat);
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  color: var(--petrol);
}
.stat--magenta { border-color: var(--magenta); }
.stat--magenta .stat-number { color: var(--magenta); }
.stat-label { font-size: var(--fs-small); }
.stat-source {
  font-size: 0.9375rem;
  color: var(--tinte-soft);
}

/* ---------- Quote / testimonial: full frame in Magenta, no fill ---------- */
.quote {
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 2px solid var(--magenta);
  border-radius: var(--radius);
}
.quote blockquote { margin: 0; }
.quote blockquote p {
  font-size: var(--fs-lead);
  font-style: italic;
  line-height: 1.5;
}
.quote figcaption {
  margin-top: 1rem;
  font-size: var(--fs-small);
  font-weight: 500;
}
/* Variant if a quote ever needs to step back */
.quote--petrol { border-color: var(--petrol); }

/* ---------- Chips: outline only, text in the same color ---------- */
.chip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.chip {
  display: inline-flex;
  padding: 0.35rem 1rem;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--petrol-text);
  border: 1.5px solid var(--petrol);
  border-radius: 999px;
}

/* ---------- Placeholders (remove before launch) ---------- */
.ph { color: var(--tinte-muted); }

.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  padding: 1.5rem;
  text-align: center;
  color: var(--tinte-muted);
  font-size: var(--fs-small);
  border: 1.5px dashed var(--tinte-line);
  border-radius: var(--radius);
}

/* ---------- Carousel: slides side by side, native sideways scroll (js/carousel.js adds arrows + dots) ---------- */
.carousel-track {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-block: 0.25rem;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex: 0 0 min(100%, 38rem);
  scroll-snap-align: start;
}

.carousel-controls {
  display: none;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}
.js .carousel-controls { display: flex; }
.carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  color: var(--tinte);
  background: transparent;
  border: 1.5px solid var(--tinte-line);
  border-radius: 50%;
  cursor: pointer;
}
.carousel-btn:hover:not(:disabled) { border-color: var(--tinte); }
.carousel-btn:disabled { opacity: 0.35; cursor: default; }
.carousel-dots { display: flex; gap: 0.5rem; }
.carousel-dots span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--tinte-line);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.carousel-dots span.is-active { background: var(--petrol); transform: scale(1.3); }

@media (prefers-reduced-motion: reduce) {
  .carousel-track { scroll-behavior: auto; }
}

/* ---------- Subheading inside a section (shared, 22.10.): opens a new part, e.g.
   "How do I achieve that?" on the homepage, "Here's how it showed up" on About ---------- */
.offer-question-head {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}
.section .offer-question,
.page-intro .offer-question {  /* (16.11.) About "What that looked like…" sits in .page-intro, same size as every subheading */
  margin: 0;
  font-size: clamp(1.625rem, 1.35rem + 1vw, 2.125rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: var(--tracking-tight);
  color: var(--tinte);
}
/* Subheading used as a section head (left column): no extra top margin, so the space above and below the divider line is equal */
.split-head .offer-question-head { margin-top: 0; }

/* ---------- Key statement frame (shared, 22.10.): the one essential statement of a section, shift gradient frame, no fill ---------- */
.key-statement {
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
  border: 2px solid transparent;
  border-radius: var(--radius);
  background:
    linear-gradient(var(--porzellan), var(--porzellan)) padding-box,
    var(--shift-gradient) border-box;
}

/* About: Magenta line + its paragraph in one frame */
.drive-spotlight {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}
.drive-spotlight .drive-punch { margin: 0; }

/* ---------- Key line (25.10., v2): one important single sentence.
   js/keyline.js draws a thin WAVY shift-gradient line under the sentence and, from it, a soft curved
   connector with a clean arrow head down to the box that follows. Both draw in together, once.
   With "reduce motion" (or without JS for the connector) the line is simply there. ---------- */
.key-line-wrap { position: relative; padding-bottom: 3.25rem; margin-bottom: 0 !important; }
.key-line > span { padding-bottom: 0.35em; }
.key-line-svg {
  position: absolute;
  overflow: visible;
  pointer-events: none;
}
.key-line-svg path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.key-line-svg .kl-connector { transition-delay: 0.9s; transition-duration: 0.8s; }
.key-line-svg .kl-head { transition-delay: 1.6s; transition-duration: 0.3s; }
.key-line-wrap.is-drawn .key-line-svg path { stroke-dashoffset: 0 !important; }
@media (prefers-reduced-motion: reduce) {
  .key-line-svg path { transition: none; stroke-dashoffset: 0 !important; }
}
/* Room between lines so a wave under line 1 never touches line 2 when the sentence wraps */
.key-line { line-height: 1.55 !important; }

/* Key line, variant "rise" (About, 25.10. test): the asterisk at the end of the rising line */
.key-line-svg .kl-star line {
  stroke: var(--magenta);
  stroke-width: 2;
  stroke-linecap: round;
}
.key-line-svg .kl-star {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.4s ease 1.2s, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.key-line-wrap.is-drawn .key-line-svg .kl-star { opacity: 1; }
.key-line-wrap.is-hover .key-line-svg .kl-star { transform: rotate(360deg) scale(1.25); transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) {
  .key-line-svg .kl-star { opacity: 1; transition: none; }
}
/* "but what could be." always stays together: if the sentence wraps, the rising part gets its own line */
.kl-future { white-space: nowrap; }
/* (25.10., Franzi) The "rise" sentence always stays on ONE line: the type shrinks with its column instead of wrapping
   (the text is ~19.6em wide, plus room for the dots and the asterisk). No arrow here, so less room underneath */
.key-line-wrap--rise { container-type: inline-size; padding-bottom: 1.25rem; }
@media (min-width: 600px) {
  .key-line-wrap--rise .key-line.drive-punch {
    white-space: nowrap;
    font-size: min(clamp(1.625rem, 1.35rem + 1vw, 2.125rem), calc((100cqi - 2.5rem) / 19.8));
  }
}
/* On phones it wraps into two lines ("what is," / "but what could be."), with only ONE line under the second (js/keyline.js) */

/* Key line "rise" v2: dotted part = what could be. Fades in after the solid part, joins into a solid line on hover */
.key-line-svg .kl-dots {
  stroke-dasharray: 0.1 7;
  opacity: 0;
  transition: opacity 0.5s ease 0.9s, stroke-dasharray 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.key-line-wrap.is-drawn .key-line-svg .kl-dots { opacity: 1; stroke-dashoffset: 0; }
.key-line-wrap.is-hover .key-line-svg .kl-dots { stroke-dasharray: 7 0; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) {
  .key-line-svg .kl-dots { opacity: 1; transition: none; }
}

/* What the first call is (28.10., after Stella): one bold line under the CTA button,
   with the same thin Petrol calendar icon as the call option on Contact */
.call-note {
  display: flex;
  align-items: flex-start;  /* icon sits at the first line when the text wraps */
  gap: 0.75rem;
  font-weight: 700;
}
.call-note-icon {
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.1rem;
  fill: none;
  stroke: var(--petrol);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Same icon line, but only the lead-in is bold (pricing line under Our collaboration*, 28.10.) */
.call-note--light { font-weight: 400; }
.call-note--light strong { font-weight: 700; }

/* Contact, "Book a call" (31.10.): what the call is, as a small note below it */
.contact-item--note { align-items: flex-start !important; }
.contact-item--note .contact-icon { margin-top: 0.3rem; }
.contact-call-detail {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.9375rem;  /* same as the note under the form (Franzi, 31.10.) */
  color: var(--tinte-soft);
  line-height: 1.5;
}

/* Small print about data (03.11.): one look everywhere, a small Petrol lock + quiet 15px text.
   Marks it as a legal note, separate from the content around it (Culture Check, contact form) */
.legal-note {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--tinte-soft);
}
.legal-note-icon {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  fill: none;
  stroke: var(--petrol);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
