/* ============================================================
   MARTINELLI — Home & Shared Components
   ============================================================ */

/* ---------- Buttons ---------- */

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(76px + clamp(1rem, 3vh, 2.5rem));
  padding-bottom: clamp(1.5rem, 4vh, 3rem);
  overflow: hidden;
}

/* Blueprint-Raster (Signatur-Element) */
.hero-blueprint {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--blueprint) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 90% 80% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 70% 40%, #000 20%, transparent 75%);
  opacity: .7;
}
.hero-glow {
  position: absolute;
  top: -10%; right: -5%;
  width: 60vw; height: 60vw;
  max-width: 800px; max-height: 800px;
  background: radial-gradient(circle, rgba(213,18,42,.16), transparent 62%);
  filter: blur(30px);
  pointer-events: none;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 620px;
  justify-self: end;
  pointer-events: none;
}
.hero-photo {
  position: relative;
  aspect-ratio: 16/10;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background:
    linear-gradient(135deg, rgba(30,33,38,.9), rgba(14,15,17,.7)),
    repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(255,255,255,.015) 12px, rgba(255,255,255,.015) 24px);
  display: grid;
  place-items: center;
  padding: 2rem;
  overflow: hidden;
}
.hero-photo::after {
  content: '';
  position: absolute;
  top: 1rem; left: 1rem;
  width: 26px; height: 26px;
  border-top: 2px solid var(--rosso);
  border-left: 2px solid var(--rosso);
  opacity: .6;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1500px;   /* Hero darf breiter atmen als der Rest der Seite */
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.hero-content { max-width: 720px; min-width: 0; }

.hero-title {
  font-size: clamp(2.5rem, min(calc(5.3vw - 10px), 10svh), 4.4rem);
  margin: 1.4rem 0 1.6rem;
  letter-spacing: -.01em;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .accent {
  color: var(--rosso);
  position: relative;
  display: inline-block;
}

.hero-lead {
  max-width: 54ch;
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 2.2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }

/* Instrumenten-Leiste */
.hero-gauges {
  display: inline-flex;
  align-items: center;
  gap: 1.6rem;
  padding: 1.1rem 1.6rem;
  background: rgba(22,24,28,.6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.gauge { display: flex; flex-direction: column; gap: .15rem; }
.gauge-val {
  font-family: var(--f-display);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}
.gauge-label {
  font-family: var(--f-mono);
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.gauge-div { width: 1px; height: 34px; background: var(--line-strong); }



/* ---------- Reveal-Animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }
.reveal:nth-child(5) { transition-delay: .32s; }

/* ---------- Responsive Hero ---------- */
@media (max-width: 1000px) {
  .nav, .header-cta { display: none; }
  .burger { display: flex; }
  .hero-visual { width: 100%; }
}
@media (max-width: 640px) {
  .hero-gauges { gap: 1rem; padding: .9rem 1.1rem; flex-wrap: wrap; }
  .gauge-val { font-size: 1.4rem; }
  .hero-actions .btn { flex: 1; justify-content: center; }
}

/* ---------- Shared: Section-Head, Links ---------- */
.sec-head { max-width: 620px; margin-bottom: 3.5rem; }
.sec-title { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 1rem 0 1rem; }
.sec-sub { color: var(--ink-soft); font-size: 1.05rem; }
.accent { color: var(--rosso); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--f-mono);
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rosso);
  font-weight: 500;
  transition: gap .3s var(--ease);
}
.link-arrow:hover { gap: .9rem; }

/* ---------- Intro ---------- */
.intro { border-top: 1px solid var(--line); }
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.intro-h {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.02;
}
.intro-body p { color: var(--ink-soft); margin-bottom: 1.2rem; font-size: 1.05rem; }
.intro-body .link-arrow { margin-top: .8rem; }

/* ---------- Leistungen ---------- */
.leistungen { background: var(--graphite); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.leist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.leist-card {
  background: var(--graphite);
  padding: 2rem 1.6rem;
  position: relative;
  transition: background .4s var(--ease);
  min-height: 200px;
}
.leist-card::before {
  content: attr(data-num);
  position: absolute;
  top: 1.2rem; right: 1.3rem;
  font-family: var(--f-mono);
  font-size: .7rem;
  color: var(--ink-ghost);
  letter-spacing: .1em;
  transition: color .4s;
}
.leist-card:hover { background: var(--steel); }
.leist-card:hover::before { color: var(--rosso); }
.leist-ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  margin-bottom: 1.3rem;
  color: var(--rosso);
  transition: border-color .4s, transform .4s var(--ease);
}
.leist-ico svg { width: 24px; height: 24px; }
.leist-card:hover .leist-ico { border-color: var(--rosso); transform: translateY(-3px); }
.leist-card h3 { font-size: 1.15rem; margin-bottom: .5rem; letter-spacing: .01em; }
.leist-card p { font-size: .9rem; color: var(--ink-soft); line-height: 1.5; }

.leist-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2.5rem;
  padding: 1.6rem 1.9rem;
  background: var(--steel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  flex-wrap: wrap;
}
.leist-foot p { color: var(--ink-soft); }
.leist-foot strong { color: var(--ink); }

.leist-card-wide { grid-column: 1 / -1; }

@media (max-width: 1000px) {
  .intro-grid { grid-template-columns: 1fr; }
  .leist-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .leist-grid { grid-template-columns: 1fr; }
  .leist-foot { flex-direction: column; align-items: flex-start; }
}

/* ---------- Marken / Spezialisierung ---------- */
.marken { position: relative; overflow: hidden; }
.marken-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(213,18,42,.08), transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(27,142,74,.05), transparent 45%);
  pointer-events: none;
}
.marken-head { max-width: 720px; margin-bottom: 3rem; position: relative; }
.marken-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
}
.marke {
  background: var(--carbon);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  transition: background .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.marke::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--rosso);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .4s var(--ease);
}
.marke:hover { background: var(--graphite); }
.marke:hover::before { transform: scaleY(1); }
.marke-name {
  font-family: var(--f-display);
  font-size: 1.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.marke-tag {
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--ink-faint);
  font-style: italic;
}

.marken-note {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 2.5rem;
  max-width: 680px;
}
.marken-note p { color: var(--ink-soft); font-size: 1.05rem; }
.marken-note strong { color: var(--ink); }

/* ---------- Bewertungen ---------- */
.reviews { background: var(--graphite); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.reviews-head {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}
.reviews-score {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4rem 2rem;
  background: var(--carbon);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  flex: 0 0 auto;
}
.score-num {
  font-family: var(--f-display);
  font-size: 4rem;
  font-weight: 700;
  line-height: .85;
  color: var(--ink);
}
.score-meta { display: flex; flex-direction: column; gap: .3rem; }
.score-stars { color: var(--rosso); font-size: 1.1rem; letter-spacing: .1em; }
.score-count { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; color: var(--ink-faint); }
.reviews-intro { flex: 1; min-width: 260px; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.review-card {
  background: var(--carbon);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform .4s var(--ease), border-color .4s;
}
.review-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.review-stars { color: var(--rosso); letter-spacing: .1em; font-size: .95rem; }
.review-card p { color: var(--ink); font-size: 1rem; line-height: 1.6; flex: 1; }
.review-card footer { display: flex; flex-direction: column; gap: .15rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.review-name { font-weight: 600; font-size: .88rem; }
.review-car { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; color: var(--ink-faint); text-transform: uppercase; }
.reviews-disclaimer { margin-top: 2rem; font-size: .8rem; color: var(--ink-faint); text-align: center; }

/* ---------- Story ---------- */
.story-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.story-photo {
  aspect-ratio: 4/5;
  background:
    linear-gradient(135deg, var(--steel), var(--graphite));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}
.story-photo::before {
  content: attr(data-photo);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
  font-family: var(--f-mono);
  font-size: .78rem;
  line-height: 1.6;
  color: var(--ink-ghost);
  letter-spacing: .04em;
}
.story-badge {
  position: absolute;
  left: 1.4rem; bottom: 1.4rem;
  background: rgba(14,15,17,.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: .8rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.story-badge-l { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--rosso); }
.story-badge-n { font-family: var(--f-display); font-size: 1.2rem; text-transform: uppercase; }

.story-h { font-size: clamp(1.8rem, 4vw, 2.9rem); line-height: 1.02; margin: 1rem 0 1.2rem; }
.story-body > p { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 1.8rem; max-width: 480px; }
.story-stats { display: flex; gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: .2rem; }
.stat-n { font-family: var(--f-display); font-size: 1.9rem; font-weight: 700; color: var(--rosso); line-height: 1; }
.stat-l { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; text-align: center; background: var(--graphite); border-top: 1px solid var(--line); }
.cta-blueprint {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--blueprint) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, #000 10%, transparent 70%);
  opacity: .6;
}
.cta-inner { position: relative; z-index: 2; max-width: 720px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.cta-h { font-size: clamp(2.2rem, 5.5vw, 4rem); }
.cta-sub { color: var(--ink-soft); font-size: 1.1rem; max-width: 520px; }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: .8rem; }

@media (max-width: 1000px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; }
  .story-visual { max-width: 400px; }
  .marken-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .marken-strip { grid-template-columns: 1fr; }
  .reviews-head { gap: 1.5rem; }
}

/* ---------- Feinschliff sehr kleine Screens (≤360px) ---------- */
@media (max-width: 360px) {
  .header-inner { gap: 1rem; }
  .hero-title { font-size: clamp(2.4rem, 13vw, 3rem); }
  .reviews-score { width: 100%; padding: 1.1rem 1.3rem; }
  .score-num { font-size: 3rem; }
  .brand-name { font-size: 1.2rem; }
}

/* ---------- Partner ---------- */
.partner { border-top: 1px solid var(--line); }
.partner-head { text-align: center; max-width: 620px; margin: 0 auto 3rem; }
.partner-title { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.partner-sub { color: var(--ink-soft); font-size: 1.05rem; }
.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  perspective: 1000px;
}
.partner-card {
  background: linear-gradient(150deg, var(--steel), var(--graphite));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform .5s var(--ease-out), border-color .4s, box-shadow .5s var(--ease-out);
  transform-style: preserve-3d;
  will-change: transform;
}
.partner-card:hover {
  transform: translateY(-6px) rotateX(4deg);
  border-color: var(--rosso);
  box-shadow: 0 24px 50px -20px rgba(213,18,42,.35), 0 0 0 1px rgba(213,18,42,.2);
}
.partner-logo {
  height: 80px;
  display: grid;
  place-items: center;
  margin-bottom: 1.4rem;
  transform: translateZ(30px);
}
.partner-logo img {
  max-height: 72px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform .4s var(--ease);
}
.partner-card:hover .partner-logo img { transform: scale(1.05); }
.partner-card p { color: var(--ink-soft); font-size: .95rem; line-height: 1.6; transform: translateZ(15px); }

@media (max-width: 640px) {
  .partner-grid { grid-template-columns: 1fr; }
}

/* Logo auf sehr kleinen Screens verkleinern */
@media (max-width: 360px) {
  .brand-logo { height: 32px; }
  .header-inner { gap: .8rem; }
}

/* Überlauf-Fix sehr kleine Screens */
@media (max-width: 360px) {
  :root { --gut: 1rem; }
  .hero-glow { max-width: 100vw; right: -20%; }
}

/* Echtes Hero-Foto */
.hero-photo.has-media { padding: 0; }
.hero-photo img:not(.polaroid) {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  display: block;
}

/* Google-Logo in Labels */
.google-g { display: inline-block; vertical-align: -2px; margin-right: .2em; }
.score-count .google-g { width: 16px; height: 16px; vertical-align: -3px; }

/* Echtes Story-Foto */
.story-photo.has-media::before { content: none; }
.story-photo.has-media { background: none; }
.story-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  display: block;
  border-radius: inherit;
}
.story-photo .story-badge { z-index: 1; }

/* Bewertungen: Link zu Google Maps */
.reviews-more { text-align: center; margin-top: 2.2rem; }

/* Google-G: mehr Luft zum Text */
.gauge-label .google-g { margin-right: .55em; vertical-align: -2px; }
.score-count .google-g { margin-right: .4em; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { border-top: 1px solid var(--line); }
.faq-head { max-width: 620px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.faq-list { max-width: 860px; }
.faq-item {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--graphite);
  margin-bottom: .8rem;
  overflow: hidden;
  transition: border-color .3s;
}
.faq-item[open] { border-color: var(--rosso); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 3rem 1.1rem 1.3rem;
  font-weight: 600;
  font-size: 1.02rem;
  position: relative;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1.2rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--f-mono);
  font-size: 1.2rem;
  color: var(--rosso);
  transition: transform .3s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p {
  padding: 0 1.3rem 1.2rem;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 720px;
}

/* Filmkorn + Parallax auf dem Hero-Foto */
.hero-photo::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .35;
  z-index: 3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.06'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-photo img:not(.polaroid) {
  transition: transform .25s ease-out;
  will-change: transform;
  transform: scale(1.04) translate(var(--px, 0px), var(--py, 0px));
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo img:not(.polaroid) { transform: none; }
}


/* Google-Zeile im Hero: sauberer Abstand per Flex, goldener Stern */
.gauge-label {
  display: inline-flex;
  align-items: center;
  gap: .55em;
}
.gauge-label .google-g { margin-right: 0; vertical-align: 0; flex: none; }
.gauge-star {
  color: #FBBC05;
  font-size: .62em;
  margin-left: .18em;
  vertical-align: .22em;
}

/* Gestaffelte Verzögerung: Leistungen, Bewertungen, FAQ */
.leist-grid > *:nth-child(2) { transition-delay: .08s; }
.leist-grid > *:nth-child(3) { transition-delay: .16s; }
.leist-grid > *:nth-child(4) { transition-delay: .24s; }
.reviews-grid > *:nth-child(2) { transition-delay: .1s; }
.reviews-grid > *:nth-child(3) { transition-delay: .2s; }
.faq-list > *:nth-child(2) { transition-delay: .05s; }
.faq-list > *:nth-child(3) { transition-delay: .10s; }
.faq-list > *:nth-child(4) { transition-delay: .15s; }
.faq-list > *:nth-child(5) { transition-delay: .20s; }
.faq-list > *:nth-child(6) { transition-delay: .25s; }

/* Hero-Überschrift: Zeilen schwenken nacheinander hoch */
.line-reveal .line {
  display: block;
  overflow: hidden;
}
.line-reveal .line > span,
.line-reveal .line {
  will-change: transform;
}
.line-reveal .line {
  opacity: 0;
  transform: translateY(.55em);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
}
.line-reveal.in .line { opacity: 1; transform: none; }
.line-reveal.in .line:nth-child(2) { transition-delay: .14s; }

@media (prefers-reduced-motion: reduce) {
  .line-reveal .line { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   POLAROID-COLLAGE (Hero) – Raster statt absoluter Positionen
   ============================================================ */
.hero-photo.hero-collage {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  place-items: stretch;
  padding: 3.2% 3.6%;
  gap: 0;
  background:
    linear-gradient(135deg, rgba(30,33,38,.9), rgba(14,15,17,.7)),
    repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(255,255,255,.015) 12px, rgba(255,255,255,.015) 24px);
}

/* Jede Karte belegt eigene Rasterfelder – keine Überlappung im Kern */
.hero-collage .polaroid {
  width: 100%;
  height: auto;
  align-self: center;
  justify-self: center;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.55));
  transition: transform .35s var(--ease-out), filter .35s;
  translate: var(--px, 0px) var(--py, 0px);
}

/* Zwei grosse Karten: links das Scudetto, rechts ueberlappend das Quadrifoglio */
.p-alfa          { grid-area: 1 / 1 / 7 / 4; transform: rotate(-6deg); animation: float-a 7.5s ease-in-out infinite; z-index: 1; }
.p-quadrifoglio  { grid-area: 1 / 4 / 7 / 7; transform: rotate(5deg);  animation: float-b 8.6s ease-in-out infinite; z-index: 2; }

@keyframes float-a {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50%      { transform: rotate(-5deg) translateY(-8px); }
}
@keyframes float-b {
  0%, 100% { transform: rotate(5deg) translateY(0); }
  50%      { transform: rotate(4deg) translateY(-10px); }
}

.hero-collage:hover .polaroid { animation-play-state: paused; }
.hero-collage .polaroid:hover {
  transform: rotate(0deg) scale(1.06) !important;
  filter: drop-shadow(0 18px 32px rgba(0,0,0,.7));
  z-index: 3;
}

/* Schmale Viewports: etwas weniger Ueberlappung */
@media (max-width: 560px) {
  .hero-collage .p-alfa         { grid-area: 1 / 1 / 7 / 4; }
  .hero-collage .p-quadrifoglio { grid-area: 1 / 4 / 7 / 7; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-collage .polaroid { animation: none !important; }
}

/* Bewertungs-Kachel: mehr Luft zwischen Zahl und Google-Zeile */
.gauge { gap: .42rem; }
.gauge-label { line-height: 1.2; }
.gauge-label .google-g { margin-right: .1em; }
.gauge-star { margin-left: .28em; }

/* ============================================================
   HERO MOBIL – gestapelt statt überlagert
   ============================================================ */
@media (max-width: 1150px) {
  .hero {
    min-height: 0;
    padding-top: 88px;
    padding-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  /* Hintergrund-Ebenen bleiben absolut, stören die Reihenfolge nicht */
  .hero-blueprint, .hero-glow { position: absolute; }
  .hero-visual {
    width: 100%;
    max-width: none;
    opacity: 1;
    margin-top: 2rem;
    pointer-events: auto;
  }
  .hero-photo.hero-collage {
    aspect-ratio: 16/9;
    padding: 5% 3%;   /* Luft fuer die gedrehten Ecken (Container kappt Ueberstand) */
  }
  .hero-inner { display: flex; flex-direction: column; gap: 0; }
  .hero-content { max-width: 100%; }

  /* Reihenfolge: Text -> Buttons -> Collage -> Kennzahlen */
  .hero-eyebrow  { order: 1; }
  .hero-title    { order: 2; }
  .hero-lead     { order: 3; }
  .hero-actions  { order: 4; margin-bottom: 0; }
  .hero-gauges   { order: 5; margin-top: 2rem; }

  .hero-title { font-size: clamp(2.1rem, 9vw, 3.2rem); }
  .hero-lead { font-size: 1rem; }
}

/* Kennzahlen mobil: sauber untereinander statt gequetscht */
@media (max-width: 640px) {
  .hero-gauges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .9rem 1.2rem;
    padding: 1.1rem 1.2rem;
  }
  .hero-gauges .gauge:first-child { grid-column: 1 / -1; }
  .gauge-div { display: none; }
  .hero-gauges .gauge:not(:first-child) {
    border-top: 1px solid var(--line);
    padding-top: .85rem;
  }
  .hero-actions { flex-direction: column; gap: .7rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 420px) {
  .hero-photo.hero-collage { aspect-ratio: 16/10; }
}

/* ---------- Abstand: Trust-Leiste (.hero-gauges) -> Marken-Laufband ---------- */
.hero + .marquee { margin-top: clamp(2rem, 5vw, 3.5rem); }
@media (max-width: 900px) {
  .hero + .marquee { margin-top: clamp(1.5rem, 5vw, 2.5rem); }
}


/* ============================================================
   FEINSCHLIFF: Atmosphaere im Hero & kleine Details
   ============================================================ */

/* Glut hinter der Collage, atmet langsam */
.hero-glow { animation: glow-drift 16s ease-in-out infinite; }
@keyframes glow-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1);      opacity: .85; }
  50%      { transform: translate3d(-2%, 2%, 0) scale(1.07); opacity: 1; }
}

/* Feines Korn ueber dem Hero – nimmt den Farbverlaeufen das Digitale */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Vignette: zieht den Blick zur Mitte */
.hero-blueprint::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 75% 65% at 50% 45%, transparent 40%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}

/* Lichtstreif wandert in Abstaenden ueber die Polaroids */
.hero-collage { position: relative; }
.hero-collage::after {
  content: '';
  position: absolute; inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.14) 50%, transparent 58%);
  transform: translateX(-120%);
  animation: sheen 9s ease-in-out 2.5s infinite;
}
@keyframes sheen {
  0%, 72%, 100% { transform: translateX(-120%); }
  86%           { transform: translateX(120%); }
}

/* Roter Unterstrich am Akzentwort zieht sich beim Laden auf */
.hero-title .accent::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -.06em;
  height: 3px;
  background: linear-gradient(90deg, var(--rosso), rgba(213,18,42,0));
  transform: scaleX(0);
  transform-origin: left;
  animation: accent-grow 1.1s var(--ease-out) .75s forwards;
}
@keyframes accent-grow { to { transform: scaleX(1); } }

/* Scroll-Hinweis am unteren Hero-Rand */
.hero-scroll {
  position: absolute;
  left: 50%; bottom: 1.6rem;
  translate: -50% 0;
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font-family: var(--f-mono); font-size: .6rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-faint);
  pointer-events: none;
}
.hero-scroll i {
  display: block;
  width: 1px; height: 34px;
  background: linear-gradient(180deg, var(--rosso), transparent);
  animation: scroll-pulse 2.4s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: .25; transform: scaleY(.55); transform-origin: top; }
  50%      { opacity: 1;   transform: scaleY(1);   transform-origin: top; }
}
@media (max-width: 1150px) { .hero-scroll { display: none; } }

/* Kachel-Nummern treten beim Hover hervor */
.leist-card { transition: background .4s var(--ease), transform .45s var(--ease-out); }
.leist-card::before { transition: opacity .4s var(--ease), transform .4s var(--ease-out); }
.leist-card:hover::before { opacity: .55; transform: translateY(-2px); }

/* Marken-Kacheln: Ziffernlauf des Rahmens */
.marke::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--rosso);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.marke:hover::after { transform: scaleX(1); }

/* Ruhiges Scrollen zu Ankern */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-glow, .hero-collage::after, .hero-scroll i { animation: none !important; }
  .hero-title .accent::after { animation: none; transform: scaleX(1); }
}
