
/* =========================================================
   EA AUTOMOBILE – PUBLIC REFINEMENT V3
   Stabil, mobilfreundlich, ohne reveal/opacity-Verstecken.
   ========================================================= */
:root{
  --ea3-navy:#10345b;
  --ea3-navy-dark:#0b2949;
  --ea3-blue:#236fc0;
  --ea3-blue-soft:#edf6ff;
  --ea3-line:#d9e5ef;
  --ea3-text:#183047;
  --ea3-muted:#6c8094;
  --ea3-surface:#ffffff;
  --ea3-soft:#f5f9fc;
  --ea3-radius:20px;
  --ea3-shadow:0 14px 40px rgba(16,52,91,.08);
}

/* No content may be hidden by this refinement */
html .ea3-visible,
html body main,
html body main section,
html body .card,
html body .vehicle,
html body .post-card{
  visibility:visible;
}

/* page rendering */
html{scroll-behavior:smooth}
body{
  background:#fff;
  color:var(--ea3-text);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
body::before{
  content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(248,251,254,.98)),
             url('/assets/ea-public-refine-v3.jpg?v=3');
  background-size:cover;background-position:center top;
}
.wrap{width:min(1180px,calc(100% - 38px))}

/* header */
body>header,
header:first-of-type{
  position:sticky;top:0;z-index:980;
  background:rgba(255,255,255,.94);
  -webkit-backdrop-filter:blur(18px);
  backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(205,220,233,.9);
  transition:box-shadow .18s ease,background .18s ease;
}
body.ea3-scrolled>header,
body.ea3-scrolled header:first-of-type{
  box-shadow:0 9px 28px rgba(15,49,84,.09);
  background:rgba(255,255,255,.98);
}
header .nav{min-height:80px}
.brand{letter-spacing:.01em}
.brand small{letter-spacing:.14em}
header .links a{position:relative}
header .links a::after{
  content:"";position:absolute;left:10px;right:10px;bottom:3px;height:2px;border-radius:99px;
  background:var(--ea3-blue);transform:scaleX(0);transition:transform .18s ease;
}
header .links a:hover::after,
header .links a[aria-current="page"]::after{transform:scaleX(1)}

/* typography */
h1,h2,h3{color:var(--ea3-navy-dark);text-wrap:balance}
h1{letter-spacing:-.045em}
h2{letter-spacing:-.025em}
.lead{line-height:1.62;color:#526b82}
.eyebrow{letter-spacing:.15em}

/* buttons */
.btn{
  border-radius:13px!important;
  min-height:44px;
  display:inline-flex!important;
  align-items:center;justify-content:center;
  font-weight:850!important;
  transition:transform .13s ease,box-shadow .13s ease,border-color .13s ease,background .13s ease!important;
}
.btn:hover{transform:translateY(-1px);box-shadow:0 7px 18px rgba(16,52,91,.09)}
.btn.primary{box-shadow:0 7px 18px rgba(32,106,180,.16)}
.btn.wa{box-shadow:0 7px 18px rgba(28,133,75,.14)}

/* hero polish without replacing the real hero image */
.hero{position:relative;isolation:isolate;overflow:hidden}
.hero::after{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:-1;
  background-image:url('/assets/ea-public-refine-v3.jpg?v=3');
  background-size:cover;background-position:center;opacity:.12;
  mix-blend-mode:multiply;
}
.hero .wrap{position:relative}
.hero h1{max-width:900px}
.hero .lead{max-width:760px}

/* cards */
.card,.vehicle,.post-card,.seo-local-box{
  border-radius:var(--ea3-radius)!important;
  border-color:var(--ea3-line)!important;
  box-shadow:0 8px 28px rgba(16,52,91,.055);
}
@media(hover:hover) and (pointer:fine){
  .card,.vehicle,.post-card{transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
  .card:hover,.vehicle:hover,.post-card:hover{
    transform:translateY(-2px);
    box-shadow:var(--ea3-shadow);
    border-color:#bfd3e4!important;
  }
}

/* vehicle listing */
.vehicle-grid{gap:18px}
.vehicle{overflow:hidden;background:#fff}
.vehicle img{display:block;width:100%;transition:transform .24s ease}
@media(hover:hover) and (pointer:fine){.vehicle:hover img{transform:scale(1.018)}}
.vehicle h3{line-height:1.22}
.vehicle .price,.price{font-variant-numeric:tabular-nums}

/* vehicle detail: safe sizing, retains V4 mobile fix */
.ea-vehicle-gallery img{box-shadow:0 7px 24px rgba(15,45,74,.07)}
.ea-vehicle-tools .card{background:linear-gradient(180deg,#fff,#fbfdff)}
.vehicle-description{line-height:1.7}

/* forms */
input,select,textarea{
  border-radius:12px!important;
  border-color:#cfddea!important;
  background:#fff!important;
  transition:border-color .12s ease,box-shadow .12s ease!important;
}
input:focus,select:focus,textarea:focus{
  outline:0!important;border-color:#8eb7d9!important;
  box-shadow:0 0 0 4px rgba(35,111,192,.08)!important;
}
label{color:#38536d}

/* trust / info boxes */
.kleinanzeigen-proof,.legal-box,.ea-proof-empty{
  border-radius:16px!important;
}
.ea-google-subtle-card,.ea-google-safeproof-inner{
  box-shadow:0 8px 24px rgba(16,52,91,.05);
}

/* sections */
section{scroll-margin-top:96px}
section.pale,.pale{background:rgba(244,249,253,.88)}
.showcase img{border-radius:18px!important;box-shadow:0 12px 34px rgba(16,52,91,.08)}
.ownerblock img{border-radius:22px!important}

/* footer */
footer{
  position:relative;overflow:hidden;
  background:linear-gradient(150deg,#0b2949,#103a63)!important;
  color:#dbe8f4!important;
}
footer::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:url('/assets/ea-public-refine-v3.jpg?v=3') center/cover;opacity:.04;mix-blend-mode:screen;
}
footer .wrap{position:relative}
footer b,footer a{color:#fff!important}
footer .muted,footer p{color:#bfd0df!important}

/* mobile contact */
.ea-mobile-contact{
  box-shadow:0 13px 35px rgba(12,42,72,.18)!important;
  border-color:#d2e0eb!important;
  overflow:hidden;
}
.ea-backtop{box-shadow:0 10px 27px rgba(16,52,91,.18)}

/* subtle page route class */
body.ea3-vehicle-page .ea-vehicle-tools{position:relative}
body.ea3-contact-page form.card{box-shadow:var(--ea3-shadow)}
body.ea3-tire-page .card{background:rgba(255,255,255,.98)}

/* responsive */
@media(max-width:900px){
  .wrap{width:min(100% - 28px,1180px)}
  header .nav{min-height:70px}
  .hero{padding-top:34px!important}
  .hero h1{font-size:clamp(38px,10vw,60px)!important;line-height:.98!important}
  .vehicle-grid{gap:13px}
}
@media(max-width:650px){
  .wrap{width:calc(100% - 24px)}
  h2{font-size:clamp(27px,8vw,38px)}
  .btn{min-height:46px}
  .actions{gap:8px}
  .card{padding:17px!important}
  .ea-mobile-contact{left:10px!important;right:10px!important;bottom:8px!important;border-radius:18px!important}
  footer{padding-bottom:84px}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}
