/* ============================================================
   EGS – Elektro-Geräte-Service Lerchbacher Helmut
   Brand: #4A6896 / #ffffff · Inter
   ============================================================ */

:root {
  --brand: #4A6896;
  --brand-dark: #375073;
  --brand-darker: #24344c;
  --brand-light: #6f8cb8;
  --brand-tint: #eef2f8;
  --brand-tint-2: #f7f9fc;

  --ink: #16202e;
  --ink-2: #3c4a5c;
  --ink-3: #6c7a8c;
  --line: #e2e8f0;
  --white: #ffffff;

  --accent: #e8a33d;

  --radius: 16px;
  --radius-lg: 24px;
  --wrap: 1160px;

  --shadow-sm: 0 2px 8px rgba(22, 32, 46, .06);
  --shadow: 0 10px 30px rgba(22, 32, 46, .08);
  --shadow-lg: 0 24px 60px rgba(22, 32, 46, .14);

  --t: .35s cubic-bezier(.22, .68, .38, 1);
  --ease-out: cubic-bezier(.22, .68, .38, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 6.2vw, 3.9rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.65rem, 4.2vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.16rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* Sprungziele nicht unter der Sticky-Nav verstecken */
section[id], footer[id] { scroll-margin-top: 84px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--brand-light); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px;
  background: var(--brand); color: var(--white);
  font-weight: 600; font-size: .97rem; text-decoration: none;
  border-radius: 999px; border: 2px solid var(--brand);
  transition: background var(--t), border-color var(--t), transform var(--t), box-shadow var(--t);
  box-shadow: 0 6px 18px rgba(74, 104, 150, .25);
}
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(74, 104, 150, .32); }
.btn--sm { padding: 9px 16px; font-size: .88rem; }
.btn--lg { padding: 16px 30px; font-size: 1.02rem; }
.btn--ghost { background: transparent; color: var(--brand); border-color: rgba(74, 104, 150, .35); box-shadow: none; }
.btn--ghost:hover { background: var(--brand-tint); color: var(--brand-dark); border-color: var(--brand); box-shadow: none; }
.btn--white { background: var(--white); color: var(--brand-darker); border-color: var(--white); box-shadow: 0 10px 28px rgba(0, 0, 0, .18); }
.btn--white:hover { background: #f2f5fa; border-color: #f2f5fa; color: var(--brand-darker); }
.btn--ghost-white { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .5); box-shadow: none; }
.btn--ghost-white:hover { background: rgba(255, 255, 255, .12); border-color: #fff; box-shadow: none; }

.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .8); margin: 0 0 .9em;
}
.eyebrow--dark { color: var(--brand); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; 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 var(--t), border-color var(--t);
}
.nav--solid { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(22, 32, 46, .05); }
.nav__inner {
  display: flex; align-items: center; gap: 18px; min-height: 68px;
  transition: min-height var(--t);
}
.nav--solid .nav__inner { min-height: 58px; }

.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.logo__mark {
  width: 44px; height: 44px; flex: none;
  border-radius: 50%;
  display: block;
  transition: transform var(--t);
}
.logo:hover .logo__mark { transform: scale(1.06) rotate(-5deg); }
.logo__mark--lg {
  width: 56px; height: 56px;
  background: #fff; padding: 3px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}
.logo__txt { display: flex; flex-direction: column; line-height: 1.2; }
.logo__txt strong { font-size: .93rem; color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
.logo__txt em { font-style: normal; font-size: .76rem; color: var(--ink-3); }

.nav__links { display: none; gap: 26px; }
.nav__links a {
  text-decoration: none; font-size: .93rem; font-weight: 500; color: var(--ink-2);
  position: relative; padding: 4px 0; transition: color var(--t);
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--brand); border-radius: 2px; transition: width var(--t);
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--brand); }
.nav__links a:hover::after,
.nav__links a.is-active::after { width: 100%; }

.nav .btn--sm { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(64px, 11vw, 118px) 0 clamp(56px, 9vw, 96px);
  background: linear-gradient(155deg, var(--brand-darker) 0%, var(--brand) 55%, var(--brand-light) 130%);
  color: rgba(255, 255, 255, .9);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 480px at 82% 8%, rgba(255, 255, 255, .16), transparent 62%),
    radial-gradient(620px 420px at 8% 92%, rgba(255, 255, 255, .10), transparent 60%);
  pointer-events: none;
}
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 78%);
}
.hero__inner { position: relative; max-width: 860px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hl { color: #ffd79a; }
.hero .lead {
  font-size: clamp(1.02rem, 2.3vw, 1.2rem);
  color: rgba(255, 255, 255, .88);
  max-width: 660px; margin-bottom: 2rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: clamp(38px, 6vw, 60px); }

.hero__facts {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, .22);
}
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts strong { font-size: 1.6rem; font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1.2; }
.hero__facts span { font-size: .9rem; color: rgba(255, 255, 255, .72); }

/* ---------- Trust bar ---------- */
.trust { background: var(--brand-tint-2); border-bottom: 1px solid var(--line); padding: 22px 0; }
.trust__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 12px 26px; text-align: center;
  font-size: .85rem; color: var(--ink-3);
}
.trust__brands { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; }
.brand {
  font-weight: 800; letter-spacing: .16em; font-size: .95rem;
  color: var(--brand-darker); opacity: .82;
}
.trust__note { font-size: .8rem; }

/* ---------- Bild-Band ---------- */
.band { padding: clamp(34px, 6vw, 56px) 0 0; }
.band__fig {
  position: relative; margin: 0;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--brand-darker);
}
.band__fig img {
  display: block; width: 100%;
  height: clamp(180px, 26vw, 300px);
  object-fit: cover; object-position: center 42%;
}
.band__fig figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 22px 18px;
  background: linear-gradient(transparent, rgba(19, 28, 40, .82));
  color: rgba(255, 255, 255, .95);
  font-size: .92rem; font-weight: 500;
}

/* ---------- Generic section ---------- */
.sec { padding: clamp(58px, 9vw, 104px) 0; }
.sec--alt { background: var(--brand-tint-2); }
.sec__intro { max-width: 640px; font-size: 1.03rem; color: var(--ink-2); margin-bottom: 2.6rem; }
.h3 { font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 800; }

/* ---------- Cards / Leistungen ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 18px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(74, 104, 150, .3); }
.card__ico {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px;
  background: var(--brand-tint); border-radius: 14px;
}
.card__ico svg { width: 26px; height: 26px; fill: var(--brand); }
.card p { margin: 0; font-size: .96rem; color: var(--ink-2); }
.card em { color: var(--brand); font-style: normal; font-weight: 700; }

/* ---------- Geräte ---------- */
.grid-geraete { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ger {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 16px; text-align: center;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.ger:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--brand-light); }
.ger svg { width: 34px; height: 34px; fill: var(--brand); margin-bottom: 10px; }
.ger h3 { font-size: .92rem; font-weight: 600; margin: 0; color: var(--ink); hyphens: auto; }

.note {
  display: flex; gap: 14px; align-items: flex-start;
  margin-top: 26px; padding: 20px 22px;
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: 12px;
}
.note svg { width: 22px; height: 22px; fill: var(--brand); flex: none; margin-top: 2px; }
.note p { margin: 0; font-size: .93rem; }

/* ---------- Bonus ---------- */
.bonus {
  position: relative;
  padding: clamp(56px, 9vw, 96px) 0;
  background: linear-gradient(140deg, var(--brand-darker) 0%, var(--brand) 100%);
  color: rgba(255, 255, 255, .9);
  overflow: hidden;
}
.bonus::after {
  content: ''; position: absolute; right: -120px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .13), transparent 68%);
}
.bonus__inner { position: relative; max-width: 720px; }
.bonus__badge {
  display: inline-block; margin-bottom: 16px;
  padding: 6px 15px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28);
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff;
}
.bonus h2 { color: #fff; }
.bonus p { color: rgba(255, 255, 255, .88); font-size: 1.02rem; max-width: 620px; }
.bonus strong { color: #fff; }
.bonus__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- Werte ---------- */
.values { display: grid; grid-template-columns: 1fr; gap: 20px; }
.val {
  padding: 26px 24px; background: var(--brand-tint-2);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform var(--t), box-shadow var(--t);
}
.val:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.val__num {
  display: block; font-size: .8rem; font-weight: 800; letter-spacing: .1em;
  color: var(--brand-light); margin-bottom: 10px;
}
.val p { margin: 0; font-size: .95rem; }

/* ---------- Über mich ---------- */
.about { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
.about__txt p { font-size: 1.01rem; }
.about strong { color: var(--ink); }
blockquote {
  margin: 28px 0 0; padding: 20px 24px;
  background: var(--white); border-left: 4px solid var(--brand); border-radius: 0 12px 12px 0;
  font-size: 1.03rem; font-style: italic; color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* Portraitfoto – bleibt immer im Querformat (Originalseitenverhaeltnis 8:5) */
.portrait { margin: 0; }
.portrait img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.portrait figcaption {
  margin-top: 12px;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  color: var(--ink-3);
}

/* Werdegang – volle Breite, linksbuendig mit dem Textblock darueber */
.cv {
  margin-top: clamp(38px, 5vw, 58px);
  padding-top: clamp(30px, 4vw, 44px);
  border-top: 1px solid var(--line);
}

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.timeline li { position: relative; padding-left: 26px; }
.timeline li::before {
  content: ''; position: absolute; left: 0; top: 4px; z-index: 1;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--brand);
}
.timeline__year {
  display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand);
}
.timeline p { margin: 2px 0 0; font-size: .96rem; color: var(--ink-2); }

/* ---------- Schauraum ---------- */
.showroom {
  display: grid; grid-template-columns: 1fr; gap: 22px; align-items: start;
  background: var(--brand-tint); border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 46px);
}
.showroom__ico {
  display: grid; place-items: center; width: 62px; height: 62px; flex: none;
  background: var(--white); border-radius: 18px; box-shadow: var(--shadow-sm);
}
.showroom__ico svg { width: 30px; height: 30px; fill: var(--brand); }
.showroom p { font-size: 1rem; max-width: 640px; }
.showroom .btn { margin-top: 8px; }

/* ---------- Kontakt ---------- */
.contact {
  padding: clamp(58px, 9vw, 104px) 0;
  background: linear-gradient(165deg, var(--brand-darker) 0%, var(--brand) 100%);
  color: rgba(255, 255, 255, .88);
}
.contact h2 { color: #fff; }
.contact__lead { max-width: 620px; color: rgba(255, 255, 255, .85); margin-bottom: 2.4rem; }

.contact__grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.ccard {
  display: flex; flex-direction: column; gap: 4px;
  padding: 24px 22px; text-decoration: none;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  transition: background var(--t), transform var(--t), border-color var(--t);
}
.ccard:hover { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .4); transform: translateY(-4px); }
.ccard svg { width: 24px; height: 24px; fill: #fff; margin-bottom: 8px; }
.ccard__label { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.ccard__val { font-size: 1.04rem; font-weight: 600; color: #fff; line-height: 1.4; }

.contact__area {
  margin: 30px 0 0; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .2);
  font-size: .93rem; color: rgba(255, 255, 255, .78);
}
.contact__area strong { color: #fff; }

/* ---------- Footer ---------- */
.footer { background: #131c28; color: rgba(255, 255, 255, .68); padding: clamp(46px, 7vw, 72px) 0 0; font-size: .93rem; }
.footer__inner { display: grid; grid-template-columns: 1fr; gap: 34px; }
.footer h3 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand p { margin: 0; line-height: 1.45; }
.footer__brand strong { color: #fff; }
.footer address { font-style: normal; line-height: 1.85; }
.footer a { color: rgba(255, 255, 255, .8); text-decoration: none; transition: color var(--t); }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__links li { margin-bottom: 8px; }
.footer__bottom {
  margin-top: 44px; padding-top: 20px; padding-bottom: 26px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.footer__bottom p { margin: 0; font-size: .82rem; color: rgba(255, 255, 255, .48); }

/* ---------- Mobile call FAB ---------- */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: grid; place-items: center; width: 56px; height: 56px;
  background: var(--brand); border-radius: 50%;
  box-shadow: 0 10px 26px rgba(74, 104, 150, .45);
  transition: transform var(--t), background var(--t);
}
.fab svg { width: 24px; height: 24px; fill: #fff; }
.fab:hover { transform: scale(1.07); background: var(--brand-dark); }

/* ============================================================
   Animationen
   ------------------------------------------------------------
   Grundsatz: nichts blinkt, nichts hüpft. Kurze Wege (max ~24px),
   weiche Kurve, gestaffelt statt gleichzeitig. Alles hinter der
   .anim-Klasse, damit ohne JS bzw. bei "reduzierter Bewegung"
   jeder Inhalt sofort und vollständig sichtbar ist.
   ============================================================ */

@keyframes rv-rise   { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes rv-sweep  { from { transform: scaleX(0); }  to { transform: scaleX(1); } }
@keyframes rv-drift  { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-2%, 1.5%, 0) scale(1.06); } }
@keyframes rv-grid   { to   { background-position: 62px 62px, 62px 62px; } }
@keyframes rv-glow   { from { transform: scale(1); opacity: .8; } to { transform: scale(1.14); opacity: 1; } }
@keyframes rv-ring   { 0% { transform: scale(1); opacity: .55; } 70% { transform: scale(1.55); opacity: 0; } 100% { opacity: 0; } }
@keyframes rv-shake  { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-12deg); } 45% { transform: rotate(9deg); } 70% { transform: rotate(-5deg); } }

/* ---------- Scroll-Reveal (generisch) ---------- */
.anim [data-rv] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: var(--rv-d, 0ms);
}
.anim [data-rv="left"]  { transform: translateX(-26px); }
.anim [data-rv="right"] { transform: translateX(26px); }
.anim [data-rv="scale"] { transform: scale(.965); }
.anim [data-rv="fade"]  { transform: none; }
.anim [data-rv].rv-in   { opacity: 1; transform: none; }

/* ---------- Hero: Auftritt beim Laden ---------- */
.anim .hero__inner > * { animation: rv-rise .9s var(--ease-out) both; }
.anim .hero .eyebrow    { animation-delay: .08s; }
.anim .hero h1          { animation-delay: .18s; }
.anim .hero .lead       { animation-delay: .30s; }
.anim .hero__cta        { animation-delay: .42s; }
.anim .hero__facts      { animation-delay: .52s; }
.anim .hero__facts li          { animation: rv-rise .8s var(--ease-out) both; }
.anim .hero__facts li:nth-child(1) { animation-delay: .62s; }
.anim .hero__facts li:nth-child(2) { animation-delay: .70s; }
.anim .hero__facts li:nth-child(3) { animation-delay: .78s; }

/* Feiner Unterstrich, der sich unter "Profiproblemlöser" aufzieht */
.hero .hl { position: relative; }
.anim .hero .hl::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: .04em;
  height: .075em; border-radius: 3px;
  background: currentColor; opacity: .38;
  transform-origin: left;
  animation: rv-sweep .9s var(--ease-out) .95s both;
}

/* Hero-Hintergrund: sehr langsame Bewegung im Lichtverlauf + Raster */
.anim .hero__bg { animation: rv-drift 28s ease-in-out infinite alternate; }
.anim .hero__bg::after { animation: rv-grid 44s linear infinite; }

/* ---------- Vertragspartner ---------- */
.brand { transition: opacity var(--t), transform var(--t); }
.brand:hover { opacity: 1; transform: translateY(-2px); }

/* ---------- Bilder: ruhiger Zoom beim Überfahren ---------- */
.band__fig img,
.portrait img { transition: transform 1.1s cubic-bezier(.2, .7, .3, 1); }
.band__fig:hover img,
.portrait:hover img { transform: scale(1.035); }
.band__fig figcaption { transition: transform var(--t); }
.band__fig:hover figcaption { transform: translateY(-3px); }

/* ---------- Leistungs-Karten: Icon reagiert mit ---------- */
.card__ico { transition: transform var(--t), background var(--t); }
.card__ico svg { transition: fill var(--t); }
.card:hover .card__ico { transform: translateY(-2px) scale(1.06); background: var(--brand); }
.card:hover .card__ico svg { fill: #fff; }

/* ---------- Geräte-Kacheln ---------- */
.ger svg { transition: transform var(--t); }
.ger:hover svg { transform: translateY(-3px) scale(1.1); }

/* ---------- Bonus ---------- */
.anim .bonus::after { animation: rv-glow 14s ease-in-out infinite alternate; }
.bonus__cta .btn svg { transition: transform var(--t); }
.bonus__cta .btn:hover svg { transform: translateX(4px); }

/* ---------- Werte ---------- */
.val { transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.val:hover { border-color: rgba(74, 104, 150, .32); }
.val__num { transition: color var(--t); }
.val:hover .val__num { color: var(--brand); }

/* ---------- Werdegang: Punkte setzen sich, Linie zieht mit ---------- */
.anim .timeline li::before {
  transform: scale(0);
  transition: transform .5s var(--ease-back);
  transition-delay: calc(var(--rv-d, 0ms) + 120ms);
}
.anim .timeline li.rv-in::before { transform: scale(1); }

/* ---------- Kontakt-Karten ---------- */
.ccard svg { transition: transform var(--t); }
.ccard:hover svg { transform: translateY(-2px) scale(1.08); }

/* ---------- Footer-Links ---------- */
.footer__links a { display: inline-block; transition: color var(--t), transform var(--t); }
.footer__links a:hover { transform: translateX(3px); }

/* ---------- Telefon-Buttons: Icon klingelt kurz ---------- */
.anim a.btn[href^="tel:"]:hover svg { animation: rv-shake .55s ease; }

/* ---------- Anruf-Button mobil: dezenter Puls ---------- */
.anim .fab::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--brand);
  animation: rv-ring 3s ease-out infinite;
  pointer-events: none;
}

/* ============================================================
   Breakpoints
   ============================================================ */
@media (min-width: 560px) {
  .hero__facts { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .grid-geraete { grid-template-columns: repeat(3, 1fr); }
  .contact__grid { grid-template-columns: repeat(3, 1fr); }
  .showroom { grid-template-columns: auto 1fr; gap: 26px; align-items: center; }
}

@media (min-width: 760px) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .values { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer__inner { grid-template-columns: 1.1fr 1.4fr 1fr; gap: 40px; }
  .nav .btn--sm { display: inline-flex; }
  .fab { display: none; }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
}

@media (min-width: 1000px) {
  .nav__links { display: flex; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .grid-geraete { grid-template-columns: repeat(6, 1fr); }
  .about { grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }

  /* Werdegang als waagrechter Zeitstrahl ueber die volle Breite */
  .timeline { grid-template-columns: repeat(5, 1fr); gap: 0 24px; }
  .timeline li { padding-left: 0; padding-top: 28px; }
  .timeline li::before { top: 0; }
  .timeline li::after {
    content: ''; position: absolute; left: 12px; right: -24px; top: 5px;
    height: 2px; background: linear-gradient(90deg, var(--brand-light), rgba(111, 140, 184, .3));
  }
  .timeline li:last-child::after { display: none; }

  /* Verbindungslinie zeichnet sich von links nach rechts */
  .anim .timeline li::after {
    transform: scaleX(0); transform-origin: left;
    transition: transform .9s var(--ease-out);
    transition-delay: calc(var(--rv-d, 0ms) + 260ms);
  }
  .anim .timeline li.rv-in::after { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-rv] { opacity: 1 !important; transform: none !important; }
  .timeline li::before,
  .timeline li::after { transform: none !important; }
  .hero .hl::after { display: none; }
  .fab::before { display: none; }
}
