/* ===================================================================
   Reprotechnik Bensheim – OnePager
   Modernes, responsives Design (Vanilla CSS)
   =================================================================== */

/* ---------- Schriften (lokal, variable Fonts) ---------- */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url("../assets/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url("../assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design Tokens ---------- */
:root {
  /* Farben */
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;

  --primary: #da251c;        /* Marken-Rot (aus dem RTB-Logo) */
  --primary-dark: #a81812;
  --primary-light: #f0392f;
  --primary-tint: #fdeceb;

  --accent: #111827;         /* Marken-Schwarz */
  --accent-dark: #0b1220;

  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --white: #ffffff;

  /* Form */
  --ok: #16a34a;
  --err: #dc2626;

  /* Maße */
  --container: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 2px 8px rgba(15, 23, 42, .05);
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .14);

  --header-h: 72px;

  /* Fonts */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Plus Jakarta Sans", var(--font-body);
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }

a { color: var(--primary); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--primary-dark); }

img, svg, iframe { max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--primary-light); outline-offset: 2px; border-radius: 4px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--primary);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.4rem;
  font: inherit;
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); box-shadow: 0 8px 20px rgba(218, 37, 28, .28); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; box-shadow: 0 12px 26px rgba(218, 37, 28, .34); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-tint); }
.btn-lg { padding: .92rem 1.8rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- Eyebrow / Section heads ---------- */
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 .7rem;
}
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto clamp(2.2rem, 5vw, 3.4rem); text-align: center; }
.section-sub { color: var(--muted); font-size: 1.06rem; margin: 0; }
.accent-text { color: var(--primary); }

/* ===================================================================
   HEADER
   =================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1rem; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-logo { height: 48px; width: auto; display: block; }
@media (max-width: 400px) { .brand-logo { height: 40px; } }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.35rem;
  box-shadow: 0 6px 14px rgba(29, 78, 216, .3);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; }
.brand-text small { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* Nav */
.nav { display: flex; align-items: center; gap: 1.7rem; }
.nav-link { color: var(--ink-soft); font-weight: 500; font-size: .96rem; position: relative; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--primary); border-radius: 2px;
  transition: width .22s ease;
}
.nav-link:hover { color: var(--primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--primary); }
.nav-cta { color: #fff; }
.nav-cta:hover { color: #fff; }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent; cursor: pointer;
  padding: 10px; border-radius: 10px;
}
.nav-toggle span {
  display: block; height: 2.5px; width: 100%;
  background: var(--ink); border-radius: 2px; margin: 4px 0;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===================================================================
   HERO
   =================================================================== */
.hero { position: relative; padding-top: calc(var(--header-h) + 3.5rem); padding-bottom: 5rem; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1100px 480px at 78% -8%, rgba(218, 37, 28, .13), transparent 60%),
    radial-gradient(700px 420px at 0% 0%, rgba(17, 24, 39, .05), transparent 55%),
    linear-gradient(180deg, var(--primary-tint), #fff 72%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 3rem;
  align-items: center;
}
.hero-copy { max-width: 620px; }
.hero h1 { margin-bottom: 1rem; }
.hero-lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.8rem 0 1.6rem; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 1.4rem;
  padding-top: 1.3rem; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .92rem;
}
.hero-trust strong { color: var(--ink); font-weight: 700; }

/* Hero visual */
.hero-visual { position: relative; }
.hero-photo {
  position: relative; z-index: 1;
  aspect-ratio: 4 / 3;
  border-radius: 24px; overflow: hidden;
  border: 6px solid #fff;
  box-shadow: var(--shadow-lg);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-blob {
  position: absolute; inset: 10% -6% -8% 6%;
  background: linear-gradient(150deg, var(--primary), var(--primary-light));
  border-radius: 38% 62% 58% 42% / 48% 41% 59% 52%;
  opacity: .16;
  filter: blur(8px);
  z-index: 0;
  animation: blob 14s ease-in-out infinite;
}
@keyframes blob {
  0%, 100% { border-radius: 38% 62% 58% 42% / 48% 41% 59% 52%; }
  50% { border-radius: 56% 44% 43% 57% / 55% 55% 45% 45%; }
}
.hero-card {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: .7rem;
  max-width: 218px;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(4px);
  padding: .7rem .9rem;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.hero-card strong { display: block; font-size: .92rem; line-height: 1.25; }
.hero-card span { font-size: .8rem; color: var(--muted); }
.hero-card-main { top: 1.1rem; right: 1.1rem; animation: float 7s ease-in-out infinite .4s; }
.hero-card-2 { bottom: 1.1rem; left: 1.1rem; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.hc-icon {
  flex: none; width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--primary-tint); color: var(--primary);
}
.hc-icon svg { width: 21px; height: 21px; }
.hc-accent { background: var(--primary); color: #fff; }

/* Hero wave */
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; z-index: -1; }
.hero-wave svg { width: 100%; height: 70px; }
.hero-wave path { fill: #fff; }

/* ===================================================================
   LEISTUNGEN – Cards
   =================================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 1.4rem;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #f3cccb; }
.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #eef1f6;
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 1.5rem 1.5rem 1.6rem; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }
.card-icon {
  position: absolute;
  left: .9rem; bottom: .9rem;
  z-index: 2;
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: #fff; color: var(--primary);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.card-icon svg { width: 25px; height: 25px; }
.card-icon-accent { background: var(--primary); color: #fff; border-color: var(--primary); }

.card-feature { border-color: #f3cccb; background: linear-gradient(180deg, #fff, var(--primary-tint)); }
.card-link { display: inline-block; margin-top: .9rem; font-weight: 600; font-size: .92rem; }
.badge-new {
  position: absolute; top: .9rem; right: .9rem; z-index: 2;
  background: var(--primary); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  padding: .22rem .65rem; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(218, 37, 28, .45);
}

/* ===================================================================
   SCAN-ABLAUF – Steps
   =================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step-num {
  position: absolute; top: -16px; left: 1.4rem;
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem;
  box-shadow: 0 8px 16px rgba(218, 37, 28, .3);
}
.step-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--primary-tint); color: var(--primary);
  margin: .9rem 0 1rem;
}
.step-icon svg { width: 24px; height: 24px; }
.step h3 { margin-bottom: .35rem; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

.scan-cta {
  margin-top: 2.6rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 1.2rem; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.8rem; box-shadow: var(--shadow-sm);
}
.scan-cta p { margin: 0; font-weight: 600; font-size: 1.05rem; }

/* ===================================================================
   ÜBER UNS
   =================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 3.6rem);
  align-items: center;
}
.about-copy p { color: var(--ink-soft); }
.about-copy .btn { margin-top: .8rem; }
.about-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.about-features li {
  display: flex; align-items: flex-start; gap: 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm);
}
.feat-icon {
  flex: none; width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--primary-tint); color: var(--primary);
}
.feat-icon svg { width: 22px; height: 22px; }
.about-features strong { display: block; font-size: 1rem; }
.about-features span { color: var(--muted); font-size: .9rem; }

/* ===================================================================
   KONTAKT
   =================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 2rem;
  align-items: start;
}
.contact-form-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow);
}
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-weight: 700; font-size: .92rem; color: var(--ink); margin-bottom: .45rem; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 1rem;
  color: var(--ink);
  padding: .8rem .95rem;
  border: 1.5px solid #8792a5;
  border-radius: var(--radius-sm);
  background: #f4f6fa;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .06);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-soft); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 4px rgba(218, 37, 28, .15);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--err); background: #fef2f2; }
.error-msg { display: block; color: var(--err); font-size: .82rem; margin-top: .35rem; min-height: 0; }

.checkbox { display: flex; gap: .65rem; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); cursor: pointer; }
.checkbox input { flex: none; width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--primary); }
.checkbox a { font-weight: 600; }

.form-note { font-size: .82rem; color: var(--muted); margin: .8rem 0 0; }
.btn-block { margin-top: 1.2rem; }

.form-success {
  display: flex; gap: .9rem; align-items: center;
  margin-top: 1.2rem; padding: 1rem 1.1rem;
  background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: var(--radius-sm);
  color: #065f46;
}
.form-success svg { flex: none; width: 26px; height: 26px; color: var(--ok); }
.form-success strong { display: block; }
.form-success span { font-size: .92rem; }

/* Kontaktinfos */
.contact-info { display: grid; gap: 1.4rem; }
.info-list { display: grid; gap: 1.1rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-icon {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.info-icon svg { width: 22px; height: 22px; }
.info-list strong { display: block; font-size: 1rem; }
.info-list span, .info-list a { color: var(--ink-soft); font-size: .95rem; }
.info-list a:hover { color: var(--primary); }

.map-wrap {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: #fff;
}
.map-wrap iframe { display: block; width: 100%; height: 220px; border: 0; filter: grayscale(.1); }
.map-link { display: block; padding: .7rem 1rem; font-weight: 600; font-size: .9rem; background: #fff; }

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer { background: var(--ink); color: #cbd5e1; padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 2.6rem;
}
.footer-brand p { color: #94a3b8; font-size: .95rem; margin-top: 1rem; max-width: 32ch; }
.footer-logo { height: 48px; width: auto; display: block; background: #fff; padding: 8px 12px; border-radius: 10px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: .55rem; }
.footer-col a { color: #cbd5e1; font-size: .94rem; }
.footer-col a:hover { color: #fff; }
.footer-contact li { color: #94a3b8; font-size: .94rem; line-height: 1.6; }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem;
  justify-content: space-between; align-items: center;
  padding: 1.4rem 0; border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .88rem; color: #94a3b8;
}
.footer-bottom a { color: #cbd5e1; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom p { margin: 0; }

/* ===================================================================
   LEGAL PAGES (Impressum / Datenschutz)
   =================================================================== */
.legal { padding-top: calc(var(--header-h) + 3rem); padding-bottom: 4rem; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.35rem; margin: 2rem 0 .6rem; }
.legal h3 { font-size: 1.05rem; margin: 1.2rem 0 .4rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { list-style: disc; padding-left: 1.3rem; margin: 0 0 1rem; }
.legal ul li { margin-bottom: .35rem; }
.legal .back-link { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1.4rem; font-weight: 600; }
.legal .placeholder { background: var(--primary-tint); border-left: 3px solid var(--primary); padding: .2rem .5rem; border-radius: 4px; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary); color: #fff;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--primary-dark); color: #fff; }
.to-top svg { width: 22px; height: 22px; }

/* ===================================================================
   Scroll-Reveal
   =================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.cards-grid .reveal.in,
.steps .reveal.in,
.about-features.reveal.in { transition-delay: var(--d, 0s); }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .hero-visual { order: -1; max-width: 420px; margin-inline: auto; width: 100%; }
  .about-grid { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  /* Mobile-Navigation */
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff;
    padding: .6rem 1.25rem 1.3rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    transition: transform .32s cubic-bezier(.4, 0, .2, 1);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav-link { padding: .85rem .25rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-link::after { display: none; }
  .nav-cta { margin-top: .9rem; align-self: flex-start; }
}

@media (max-width: 540px) {
  .field-row { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero-trust { gap: 1rem 1.2rem; }
  .scan-cta { flex-direction: column; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
